Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2019-04-15 11:40:49 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-04-15 11:40:48 +0300
commit09a70e37172cbec62fe3139373ee72a0212eeb52 (patch)
treeee50118e9c86070c67cd7ad7cd4abdc705e261a1 /build
parentbff1c3a53de563c5451e2cf1cfa5afdfa70be0b0 (diff)
remove custom browserlist for our esm build (#28642)
Diffstat (limited to 'build')
-rw-r--r--build/rollup.config.js48
1 files changed, 12 insertions, 36 deletions
diff --git a/build/rollup.config.js b/build/rollup.config.js
index bb6b425af4..9a5e13f393 100644
--- a/build/rollup.config.js
+++ b/build/rollup.config.js
@@ -11,42 +11,18 @@ const ESM = process.env.ESM === 'true'
let fileDest = `bootstrap${ESM ? '.esm' : ''}`
const external = ['popper.js']
const plugins = [
- 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
- externalHelpersWhitelist: [
- 'defineProperties',
- 'createClass',
- 'inheritsLoose',
- 'defineProperty',
- 'objectSpread'
- ]
- })
+ babel({
+ // Only transpile our source code
+ exclude: 'node_modules/**',
+ // Include only required helpers
+ externalHelpersWhitelist: [
+ 'defineProperties',
+ 'createClass',
+ 'inheritsLoose',
+ 'defineProperty',
+ 'objectSpread'
+ ]
+ })
]
const globals = {
'popper.js': 'Popper'