1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 15:40:59 +00:00

rollup: specify generatedCode: 'es2015' (#35070)

This will make use of `const` and modern features (which we are already using in our code) in the generated rollup code.
This commit is contained in:
XhmikosR 2021-10-04 19:46:07 +03:00 committed by GitHub
parent 78e9b402df
commit c81c645394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -163,6 +163,7 @@ const build = async plugin => {
name: plugin,
sourcemap: true,
globals,
generatedCode: 'es2015',
file: path.resolve(__dirname, `${pluginPath}/${pluginFilename}`)
})

View File

@ -43,7 +43,8 @@ const rollupConfig = {
banner,
file: path.resolve(__dirname, `../dist/js/${fileDest}.js`),
format: ESM ? 'esm' : 'umd',
globals
globals,
generatedCode: 'es2015'
},
external,
plugins

View File

@ -98,7 +98,8 @@ const conf = {
output: {
format: 'iife',
name: 'bootstrapTest',
sourcemap: 'inline'
sourcemap: 'inline',
generatedCode: 'es2015'
}
}
}