Completely updated React, fixed #11, (hopefully)
This commit is contained in:
4
goTorrentWebUI/node_modules/webpack/lib/dependencies/HarmonyDetectionParserPlugin.js
generated
vendored
4
goTorrentWebUI/node_modules/webpack/lib/dependencies/HarmonyDetectionParserPlugin.js
generated
vendored
@@ -9,7 +9,7 @@ const HarmonyCompatibilityDependency = require("./HarmonyCompatibilityDependency
|
||||
module.exports = class HarmonyDetectionParserPlugin {
|
||||
apply(parser) {
|
||||
parser.plugin("program", (ast) => {
|
||||
var isHarmony = ast.body.some(statement => {
|
||||
const isHarmony = ast.body.some(statement => {
|
||||
return /^(Import|Export).*Declaration$/.test(statement.type);
|
||||
});
|
||||
if(isHarmony) {
|
||||
@@ -32,7 +32,7 @@ module.exports = class HarmonyDetectionParserPlugin {
|
||||
module.exportsArgument = "__webpack_exports__";
|
||||
}
|
||||
});
|
||||
var nonHarmonyIdentifiers = ["define", "exports"];
|
||||
const nonHarmonyIdentifiers = ["define", "exports"];
|
||||
nonHarmonyIdentifiers.forEach(identifer => {
|
||||
parser.plugin(`evaluate typeof ${identifer}`, nullInHarmony);
|
||||
parser.plugin(`typeof ${identifer}`, skipInHarmony);
|
||||
|
Reference in New Issue
Block a user