From efdc32fec5f228540d8370f79efc897e6f9a0321 Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Fri, 3 Nov 2017 15:42:37 -0400 Subject: [PATCH] Run with loose, exclude typeof in standalone (#6736) --- Gulpfile.js | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index d6011616f7..867c73a3ce 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -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 }], + ], }, }, ],