1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-20 12:21:35 +02:00
* use .babelrc.js, compile bundled/non-bundled with loose mode

* add back helper, exclude typeof transform
This commit is contained in:
Henry Zhu
2017-09-17 02:40:48 -04:00
committed by Johann-S
parent 5cec8e0de6
commit f17b165f0f
5 changed files with 1633 additions and 630 deletions

16
.babelrc.js Normal file
View 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)
};