aboutsummaryrefslogtreecommitdiff
path: root/build/rollup.config.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-05-26 06:14:12 +0300
committerGitHub <[email protected]>2020-05-26 06:14:12 +0300
commit340236cbe4a5bfb3fb3583f177ba7a493bb4f21c (patch)
tree6fc829896c5ee381a7457244d3d100012b5eef01 /build/rollup.config.js
parentc9cd3e4a083a69bcd2eefb1d1b62e6106e2ce469 (diff)
downloadbootstrap-340236cbe4a5bfb3fb3583f177ba7a493bb4f21c.tar.xz
bootstrap-340236cbe4a5bfb3fb3583f177ba7a493bb4f21c.zip
Update to `@rollup/plugin-babel` (#30742)
Diffstat (limited to 'build/rollup.config.js')
-rw-r--r--build/rollup.config.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/build/rollup.config.js b/build/rollup.config.js
index d32346e10..a79250217 100644
--- a/build/rollup.config.js
+++ b/build/rollup.config.js
@@ -1,10 +1,9 @@
'use strict'
const path = require('path')
-const babel = require('rollup-plugin-babel')
+const { babel } = require('@rollup/plugin-babel')
const resolve = require('@rollup/plugin-node-resolve')
const banner = require('./banner.js')
-const babelHelpers = require('./babel-helpers.js')
const BUNDLE = process.env.BUNDLE === 'true'
const ESM = process.env.ESM === 'true'
@@ -15,8 +14,8 @@ const plugins = [
babel({
// Only transpile our source code
exclude: 'node_modules/**',
- // Include only required helpers
- externalHelpersWhitelist: babelHelpers
+ // Include the helpers in the bundle, at most one copy of each
+ babelHelpers: 'bundled'
})
]
const globals = {