mirror of
https://github.com/flarum/core.git
synced 2025-08-06 00:17:31 +02:00
fix: code splitting bug
This commit is contained in:
@@ -8,8 +8,15 @@ class RegisterAsyncChunksPlugin {
|
||||
apply(compiler) {
|
||||
compiler.hooks.thisCompilation.tap("RegisterAsyncChunksPlugin", (compilation) => {
|
||||
let alreadyOptimized = false;
|
||||
|
||||
compilation.hooks.unseal.tap("RegisterAsyncChunksPlugin", () => {
|
||||
alreadyOptimized = false;
|
||||
RegisterAsyncChunksPlugin.registry = {};
|
||||
});
|
||||
|
||||
compilation.hooks.finishModules.tap("RegisterAsyncChunksPlugin", () => {
|
||||
alreadyOptimized = false;
|
||||
RegisterAsyncChunksPlugin.registry = {};
|
||||
});
|
||||
|
||||
compilation.hooks.processAssets.tap(
|
||||
|
Reference in New Issue
Block a user