mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-20 12:21:35 +02:00
Babel 7 (#23966)
* use .babelrc.js, compile bundled/non-bundled with loose mode * add back helper, exclude typeof transform
This commit is contained in:
16
.babelrc.js
Normal file
16
.babelrc.js
Normal file
@@ -0,0 +1,16 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
[
|
||||
'env',
|
||||
{
|
||||
loose: true,
|
||||
modules: false,
|
||||
exclude: ['transform-es2015-typeof-symbol']
|
||||
}
|
||||
]
|
||||
],
|
||||
plugins: [
|
||||
process.env.ROLLUP && 'external-helpers',
|
||||
process.env.PLUGINS && 'transform-es2015-modules-strip',
|
||||
].filter(Boolean)
|
||||
};
|
Reference in New Issue
Block a user