diff options
author | Johann-S <johann.servoire@gmail.com> | 2019-04-15 11:40:49 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-04-15 11:40:48 +0300 |
commit | 09a70e37172cbec62fe3139373ee72a0212eeb52 (patch) | |
tree | ee50118e9c86070c67cd7ad7cd4abdc705e261a1 /build/rollup.config.js | |
parent | bff1c3a53de563c5451e2cf1cfa5afdfa70be0b0 (diff) |
remove custom browserlist for our esm build (#28642)
Diffstat (limited to 'build/rollup.config.js')
-rw-r--r-- | build/rollup.config.js | 48 |
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' |