Repository navigation
Commit f93ec13
committed
fix(html): hoist HtmlModulesPlugin requires out of the compilation hook
Enabling `experiments.html` by default applies HtmlModulesPlugin to every
build. Its lazy `require`s inside the newCompilation hook crashed a watch
rebuild that raced after Jest teardown; hoisting them to module scope fixes
that and avoids re-requiring per compilation. Keep the no-loader Errors case
opted out of the html experiment so it still exercises that path.1 parent 029c667 commit f93ec13
2 files changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
555 | 560 | | |
556 | 561 | | |
557 | 562 | | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | 563 | | |
566 | 564 | | |
567 | 565 | | |
| |||
765 | 763 | | |
766 | 764 | | |
767 | 765 | | |
768 | | - | |
769 | | - | |
770 | 766 | | |
771 | 767 | | |
772 | 768 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
| 877 | + | |
| 878 | + | |
877 | 879 | | |
878 | 880 | | |
879 | 881 | | |
| |||
0 commit comments