Completely updated React, fixed #11, (hopefully)
This commit is contained in:
4
goTorrentWebUI/node_modules/webpack/lib/MainTemplate.js
generated
vendored
4
goTorrentWebUI/node_modules/webpack/lib/MainTemplate.js
generated
vendored
@@ -99,7 +99,9 @@ module.exports = class MainTemplate extends Template {
|
||||
});
|
||||
this.plugin("require-extensions", (source, chunk, hash) => {
|
||||
const buf = [];
|
||||
if(chunk.chunks.length > 0) {
|
||||
const chunkMaps = chunk.getChunkMaps();
|
||||
// Check if there are non initial chunks which need to be imported using require-ensure
|
||||
if(Object.keys(chunkMaps.hash).length) {
|
||||
buf.push("// This file contains only the entry chunk.");
|
||||
buf.push("// The chunk loading function for additional chunks");
|
||||
buf.push(`${this.requireFn}.e = function requireEnsure(chunkId) {`);
|
||||
|
Reference in New Issue
Block a user