diff options
| author | Henry Zhu <[email protected]> | 2017-09-17 02:40:48 -0400 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2017-09-17 08:40:48 +0200 |
| commit | f17b165f0fa2ff7b9537cfc368796aa92ae91139 (patch) | |
| tree | c680c0c9ff60b14831840a2ee31ec5ce27fa125c /.babelrc.js | |
| parent | 5cec8e0de6d6d9fa525e82f309ada18fdb3e3753 (diff) | |
| download | bootstrap-f17b165f0fa2ff7b9537cfc368796aa92ae91139.tar.xz bootstrap-f17b165f0fa2ff7b9537cfc368796aa92ae91139.zip | |
Babel 7 (#23966)
* use .babelrc.js, compile bundled/non-bundled with loose mode
* add back helper, exclude typeof transform
Diffstat (limited to '.babelrc.js')
| -rw-r--r-- | .babelrc.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.babelrc.js b/.babelrc.js new file mode 100644 index 000000000..a3a75e06c --- /dev/null +++ b/.babelrc.js @@ -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) +}; |
