feat: refactoring project
This commit is contained in:
5
node_modules/webpack/lib/json/JsonModulesPlugin.js
generated
vendored
5
node_modules/webpack/lib/json/JsonModulesPlugin.js
generated
vendored
@@ -33,7 +33,6 @@ class JsonModulesPlugin {
|
||||
* Apply the plugin
|
||||
* @param {Compiler} compiler the compiler instance
|
||||
* @returns {void}
|
||||
*
|
||||
*/
|
||||
apply(compiler) {
|
||||
compiler.hooks.compilation.tap(
|
||||
@@ -48,9 +47,7 @@ class JsonModulesPlugin {
|
||||
});
|
||||
normalModuleFactory.hooks.createGenerator
|
||||
.for(JSON_MODULE_TYPE)
|
||||
.tap(PLUGIN_NAME, () => {
|
||||
return new JsonGenerator();
|
||||
});
|
||||
.tap(PLUGIN_NAME, () => new JsonGenerator());
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user