Completely updated React, fixed #11, (hopefully)
This commit is contained in:
48
goTorrentWebUI/node_modules/webpack/lib/Compiler.js
generated
vendored
48
goTorrentWebUI/node_modules/webpack/lib/Compiler.js
generated
vendored
@@ -6,6 +6,7 @@
|
||||
|
||||
const path = require("path");
|
||||
const Tapable = require("tapable");
|
||||
const util = require("util");
|
||||
|
||||
const Compilation = require("./Compilation");
|
||||
const Stats = require("./Stats");
|
||||
@@ -186,35 +187,30 @@ class Compiler extends Tapable {
|
||||
loader: null,
|
||||
context: null
|
||||
};
|
||||
let deprecationReported = false;
|
||||
this.parser = {
|
||||
plugin: (hook, fn) => {
|
||||
if(!deprecationReported) {
|
||||
console.warn("webpack: Using compiler.parser is deprecated.\n" +
|
||||
"Use compiler.plugin(\"compilation\", function(compilation, data) {\n data.normalModuleFactory.plugin(\"parser\", function(parser, options) { parser.plugin(/* ... */); });\n}); instead. " +
|
||||
"It was called " + new Error().stack.split("\n")[2].trim() + ".");
|
||||
deprecationReported = true;
|
||||
}
|
||||
this.plugin("compilation", (compilation, data) => {
|
||||
data.normalModuleFactory.plugin("parser", parser => {
|
||||
parser.plugin(hook, fn);
|
||||
plugin: util.deprecate(
|
||||
(hook, fn) => {
|
||||
this.plugin("compilation", (compilation, data) => {
|
||||
data.normalModuleFactory.plugin("parser", parser => {
|
||||
parser.plugin(hook, fn);
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
apply: () => {
|
||||
const args = arguments;
|
||||
if(!deprecationReported) {
|
||||
console.warn("webpack: Using compiler.parser is deprecated.\n" +
|
||||
"Use compiler.plugin(\"compilation\", function(compilation, data) {\n data.normalModuleFactory.plugin(\"parser\", function(parser, options) { parser.apply(/* ... */); });\n}); instead. " +
|
||||
"It was called " + new Error().stack.split("\n")[2].trim() + ".");
|
||||
deprecationReported = true;
|
||||
}
|
||||
this.plugin("compilation", (compilation, data) => {
|
||||
data.normalModuleFactory.plugin("parser", parser => {
|
||||
parser.apply.apply(parser, args);
|
||||
},
|
||||
"webpack: Using compiler.parser is deprecated.\n" +
|
||||
"Use compiler.plugin(\"compilation\", function(compilation, data) {\n data.normalModuleFactory.plugin(\"parser\", function(parser, options) { parser.plugin(/* ... */); });\n}); instead. "
|
||||
),
|
||||
apply: util.deprecate(
|
||||
() => {
|
||||
const args = arguments;
|
||||
this.plugin("compilation", (compilation, data) => {
|
||||
data.normalModuleFactory.plugin("parser", parser => {
|
||||
parser.apply.apply(parser, args);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
"webpack: Using compiler.parser is deprecated.\n" +
|
||||
"Use compiler.plugin(\"compilation\", function(compilation, data) {\n data.normalModuleFactory.plugin(\"parser\", function(parser, options) { parser.apply(/* ... */); });\n}); instead. "
|
||||
)
|
||||
};
|
||||
|
||||
this.options = {};
|
||||
|
Reference in New Issue
Block a user