diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-10-29 10:38:35 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2022-01-29 14:25:30 +0300 |
commit | 62d86c07f81dfae632742dbf62633e767bac8edd (patch) | |
tree | 0632411740f52351da50f74a44b9a4ecb4d923c0 /build/rollup.config.js | |
parent | 3ac4451d47c41c3153d554eb7b84f558c137995e (diff) |
Rename variables
Diffstat (limited to 'build/rollup.config.js')
-rw-r--r-- | build/rollup.config.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/rollup.config.js b/build/rollup.config.js index c00438de25..2d2920fd50 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -9,7 +9,7 @@ const banner = require('./banner.js') const BUNDLE = process.env.BUNDLE === 'true' const ESM = process.env.ESM === 'true' -let fileDest = `bootstrap${ESM ? '.esm' : ''}` +let fileDestination = `bootstrap${ESM ? '.esm' : ''}` const external = ['@popperjs/core'] const plugins = [ babel({ @@ -24,7 +24,7 @@ const globals = { } if (BUNDLE) { - fileDest += '.bundle' + fileDestination += '.bundle' // Remove last entry in external array to bundle Popper external.pop() delete globals['@popperjs/core'] @@ -41,7 +41,7 @@ const rollupConfig = { input: path.resolve(__dirname, `../js/index.${ESM ? 'esm' : 'umd'}.js`), output: { banner, - file: path.resolve(__dirname, `../dist/js/${fileDest}.js`), + file: path.resolve(__dirname, `../dist/js/${fileDestination}.js`), format: ESM ? 'esm' : 'umd', globals, generatedCode: 'es2015' |