Run with loose, exclude typeof in standalone (#6736)

This commit is contained in:
Henry Zhu 2017-11-03 15:42:37 -04:00 committed by GitHub
parent 1196ec1e38
commit efdc32fec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,15 @@ function webpackBuild() {
// their project.json (or a ".babelrc" file). We need to ignore
// those as we're using our own Babel options.
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
// those as we're using our own Babel options.
babelrc: false,
presets: ["@babel/env", "@babel/stage-0"],
presets: [
[
"@babel/env",
{
loose: true,
exclude: ["transform-typeof-symbol"],
},
],
["@babel/stage-0", { loose: true }],
],
},
},
],