mirror of https://github.com/twbs/bootstrap.git
use specific browserlist for esm build
This commit is contained in:
parent
ba9caacaa5
commit
c2b05dd7b5
|
@ -11,7 +11,31 @@ const ESM = process.env.ESM === 'true'
|
|||
let fileDest = `bootstrap${ESM ? '.esm' : ''}`
|
||||
const external = ['popper.js']
|
||||
const plugins = [
|
||||
babel({
|
||||
babel(ESM ?
|
||||
{
|
||||
// Only transpile our source code
|
||||
exclude: 'node_modules/**',
|
||||
babelrc: false,
|
||||
presets: [
|
||||
[
|
||||
'@babel/env',
|
||||
{
|
||||
loose: true,
|
||||
modules: false,
|
||||
targets: {
|
||||
browsers: [
|
||||
'Chrome >= 60',
|
||||
'Safari >= 10.1',
|
||||
'iOS >= 10.3',
|
||||
'Firefox >= 54',
|
||||
'Edge >= 15'
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
} :
|
||||
{
|
||||
// Only transpile our source code
|
||||
exclude: 'node_modules/**',
|
||||
// Include only required helpers
|
||||
|
|
Loading…
Reference in New Issue