nav tabs on admin dashboard
This commit is contained in:
39
node_modules/webpack/lib/node/NodeHotUpdateChunkTemplatePlugin.js
generated
vendored
39
node_modules/webpack/lib/node/NodeHotUpdateChunkTemplatePlugin.js
generated
vendored
@@ -4,24 +4,33 @@
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
const ConcatSource = require("webpack-sources").ConcatSource;
|
||||
const { ConcatSource } = require("webpack-sources");
|
||||
|
||||
class NodeHotUpdateChunkTemplatePlugin {
|
||||
|
||||
apply(hotUpdateChunkTemplate) {
|
||||
hotUpdateChunkTemplate.plugin("render", (modulesSource, modules, removedModules, hash, id) => {
|
||||
const source = new ConcatSource();
|
||||
source.add("exports.id = " + JSON.stringify(id) + ";\nexports.modules = ");
|
||||
source.add(modulesSource);
|
||||
source.add(";");
|
||||
return source;
|
||||
});
|
||||
hotUpdateChunkTemplate.plugin("hash", function(hash) {
|
||||
hash.update("NodeHotUpdateChunkTemplatePlugin");
|
||||
hash.update("3");
|
||||
hash.update(this.outputOptions.hotUpdateFunction + "");
|
||||
hash.update(this.outputOptions.library + "");
|
||||
});
|
||||
hotUpdateChunkTemplate.hooks.render.tap(
|
||||
"NodeHotUpdateChunkTemplatePlugin",
|
||||
(modulesSource, modules, removedModules, hash, id) => {
|
||||
const source = new ConcatSource();
|
||||
source.add(
|
||||
"exports.id = " + JSON.stringify(id) + ";\nexports.modules = "
|
||||
);
|
||||
source.add(modulesSource);
|
||||
source.add(";");
|
||||
return source;
|
||||
}
|
||||
);
|
||||
hotUpdateChunkTemplate.hooks.hash.tap(
|
||||
"NodeHotUpdateChunkTemplatePlugin",
|
||||
hash => {
|
||||
hash.update("NodeHotUpdateChunkTemplatePlugin");
|
||||
hash.update("3");
|
||||
hash.update(
|
||||
hotUpdateChunkTemplate.outputOptions.hotUpdateFunction + ""
|
||||
);
|
||||
hash.update(hotUpdateChunkTemplate.outputOptions.library + "");
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
module.exports = NodeHotUpdateChunkTemplatePlugin;
|
||||
|
||||
Reference in New Issue
Block a user