mirror of
https://github.com/flarum/framework.git
synced 2025-02-16 23:22:45 +08:00
fix: code splitting bug
This commit is contained in:
parent
4cb6b8fbb9
commit
75399117e3
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user