0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
Bootstrap/.babelrc.js
Henry Zhu f17b165f0f Babel 7 (#23966)
* use .babelrc.js, compile bundled/non-bundled with loose mode

* add back helper, exclude typeof transform
2017-09-17 08:40:48 +02:00

17 lines
318 B
JavaScript

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)
};