Skip to content

Commit c096da6

Browse files
committed
Fix the build crash when there is a large number of 'shadow' scripts
1 parent 0f18d5a commit c096da6

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

build/webpack/module.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,6 @@ module.exports = async function module({plugins}) {
243243
}
244244
},
245245

246-
'extract-loader',
247-
248-
{
249-
loader: 'html-loader',
250-
options: config.html()
251-
},
252-
253246
{
254247
loader: 'monic-loader',
255248
options: inherit(monic.html, {

build/webpack/plugins/async-chunks-plugin/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class AsyncPlugRuntimeModule extends RuntimeModule {
2121
}
2222

2323
generate() {
24-
return `const loadScript = ${RuntimeGlobals.loadScript};
24+
return `var loadScript = ${RuntimeGlobals.loadScript};
2525
${RuntimeGlobals.loadScript} = (path, cb, chunk, id) => {
26-
const tpl = document.getElementById(id);
26+
var tpl = document.getElementById(id);
2727
if (tpl?.content) {
2828
document.body.appendChild(tpl.content.cloneNode(true));
2929
cb();

0 commit comments

Comments
 (0)