Run with loose, exclude typeof in standalone (#6736)
This commit is contained in:
parent
1196ec1e38
commit
efdc32fec5
21
Gulpfile.js
21
Gulpfile.js
@ -116,7 +116,15 @@ function webpackBuild() {
|
|||||||
// their project.json (or a ".babelrc" file). We need to ignore
|
// their project.json (or a ".babelrc" file). We need to ignore
|
||||||
// those as we're using our own Babel options.
|
// those as we're using our own Babel options.
|
||||||
babelrc: false,
|
babelrc: false,
|
||||||
presets: ["@babel/env"],
|
presets: [
|
||||||
|
[
|
||||||
|
"@babel/env",
|
||||||
|
{
|
||||||
|
loose: true,
|
||||||
|
exclude: ["transform-typeof-symbol"],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -128,7 +136,16 @@ function webpackBuild() {
|
|||||||
// their project.json (or a ".babelrc" file). We need to ignore
|
// their project.json (or a ".babelrc" file). We need to ignore
|
||||||
// those as we're using our own Babel options.
|
// those as we're using our own Babel options.
|
||||||
babelrc: false,
|
babelrc: false,
|
||||||
presets: ["@babel/env", "@babel/stage-0"],
|
presets: [
|
||||||
|
[
|
||||||
|
"@babel/env",
|
||||||
|
{
|
||||||
|
loose: true,
|
||||||
|
exclude: ["transform-typeof-symbol"],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
["@babel/stage-0", { loose: true }],
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user