mirror of https://github.com/twbs/bootstrap.git
remove custom browserlist for our esm build (#28642)
This commit is contained in:
parent
bff1c3a53d
commit
09a70e3717
|
@ -11,42 +11,18 @@ const ESM = process.env.ESM === 'true'
|
||||||
let fileDest = `bootstrap${ESM ? '.esm' : ''}`
|
let fileDest = `bootstrap${ESM ? '.esm' : ''}`
|
||||||
const external = ['popper.js']
|
const external = ['popper.js']
|
||||||
const plugins = [
|
const plugins = [
|
||||||
babel(ESM ?
|
babel({
|
||||||
{
|
// Only transpile our source code
|
||||||
// Only transpile our source code
|
exclude: 'node_modules/**',
|
||||||
exclude: 'node_modules/**',
|
// Include only required helpers
|
||||||
babelrc: false,
|
externalHelpersWhitelist: [
|
||||||
presets: [
|
'defineProperties',
|
||||||
[
|
'createClass',
|
||||||
'@babel/env',
|
'inheritsLoose',
|
||||||
{
|
'defineProperty',
|
||||||
loose: true,
|
'objectSpread'
|
||||||
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
|
|
||||||
externalHelpersWhitelist: [
|
|
||||||
'defineProperties',
|
|
||||||
'createClass',
|
|
||||||
'inheritsLoose',
|
|
||||||
'defineProperty',
|
|
||||||
'objectSpread'
|
|
||||||
]
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
const globals = {
|
const globals = {
|
||||||
'popper.js': 'Popper'
|
'popper.js': 'Popper'
|
||||||
|
|
|
@ -197,11 +197,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/js/bootstrap.esm.js",
|
"path": "./dist/js/bootstrap.esm.js",
|
||||||
"maxSize": "27 kB"
|
"maxSize": "28 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/js/bootstrap.esm.min.js",
|
"path": "./dist/js/bootstrap.esm.min.js",
|
||||||
"maxSize": "18 kB"
|
"maxSize": "19 kB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/js/bootstrap.js",
|
"path": "./dist/js/bootstrap.js",
|
||||||
|
|
Loading…
Reference in New Issue