Completely updated React, fixed #11, (hopefully)
This commit is contained in:
4
goTorrentWebUI/node_modules/webpack/lib/node/NodeTargetPlugin.js
generated
vendored
4
goTorrentWebUI/node_modules/webpack/lib/node/NodeTargetPlugin.js
generated
vendored
@@ -6,9 +6,11 @@
|
||||
|
||||
const ExternalsPlugin = require("../ExternalsPlugin");
|
||||
|
||||
const builtins = require("module").builtinModules || Object.keys(process.binding("natives"));
|
||||
|
||||
class NodeTargetPlugin {
|
||||
apply(compiler) {
|
||||
new ExternalsPlugin("commonjs", Object.keys(process.binding("natives"))).apply(compiler);
|
||||
new ExternalsPlugin("commonjs", builtins).apply(compiler);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user