diff --git a/packages/babel-compiler/.npm/package/npm-shrinkwrap.json b/packages/babel-compiler/.npm/package/npm-shrinkwrap.json index 1db6764f73..79f5262e54 100644 --- a/packages/babel-compiler/.npm/package/npm-shrinkwrap.json +++ b/packages/babel-compiler/.npm/package/npm-shrinkwrap.json @@ -311,8 +311,8 @@ "from": "babel-types@>=6.16.0 <6.17.0" }, "babylon": { - "version": "6.11.4", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.11.4.tgz", + "version": "6.11.6", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.11.6.tgz", "from": "babylon@>=6.11.4 <6.12.0" }, "balanced-match": { diff --git a/packages/babel-compiler/babel-compiler.js b/packages/babel-compiler/babel-compiler.js index 485ecb8aa9..97169aa21a 100644 --- a/packages/babel-compiler/babel-compiler.js +++ b/packages/babel-compiler/babel-compiler.js @@ -64,16 +64,13 @@ BCp.processOneFileForTarget = function (inputFile, source) { // compilation, give it the following file extension: .es5.js ! excludedFileExtensionPattern.test(inputFilePath)) { - var targetCouldBeInternetExplorer8 = - inputFile.getArch() === "web.browser"; - var extraFeatures = Object.assign({}, this.extraFeatures); if (! extraFeatures.hasOwnProperty("jscript")) { // Perform some additional transformations to improve compatibility // in older browsers (e.g. wrapping named function expressions, per // http://kiro.me/blog/nfe_dilemma.html). - extraFeatures.jscript = targetCouldBeInternetExplorer8; + extraFeatures.jscript = true; } var babelOptions = Babel.getDefaultOptions(extraFeatures);