diff options
Diffstat (limited to 'vendor/twbs/bootstrap/build/rollup.config.js')
-rw-r--r-- | vendor/twbs/bootstrap/build/rollup.config.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/vendor/twbs/bootstrap/build/rollup.config.js b/vendor/twbs/bootstrap/build/rollup.config.js index 0dfa5d48a..2d43194fe 100644 --- a/vendor/twbs/bootstrap/build/rollup.config.js +++ b/vendor/twbs/bootstrap/build/rollup.config.js @@ -2,8 +2,9 @@ const path = require('path') const babel = require('rollup-plugin-babel') -const resolve = require('rollup-plugin-node-resolve') +const resolve = require('@rollup/plugin-node-resolve') const banner = require('./banner.js') +const babelHelpers = require('./babel-helpers.js') const BUNDLE = process.env.BUNDLE === 'true' @@ -11,14 +12,10 @@ let fileDest = 'bootstrap.js' const external = ['jquery', 'popper.js'] const plugins = [ babel({ - exclude: 'node_modules/**', // Only transpile our source code - externalHelpersWhitelist: [ // Include only required helpers - 'defineProperties', - 'createClass', - 'inheritsLoose', - 'defineProperty', - 'objectSpread2' - ] + // Only transpile our source code + exclude: 'node_modules/**', + // Include only required helpers + externalHelpersWhitelist: babelHelpers }) ] const globals = { |