Babel 7 (#23966)
* use .babelrc.js, compile bundled/non-bundled with loose mode * add back helper, exclude typeof transform
This commit is contained in:
parent
5cec8e0de6
commit
f17b165f0f
5 changed files with 1633 additions and 630 deletions
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)
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue