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
diff options
context:
space:
mode:
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 d32346e101..a792502172 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 = {