Skip to content

Commit

Permalink
test: easier way to write hmr test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Dec 26, 2024
1 parent 1b95aa6 commit 2424c1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rspack-test-tools/src/processor/hot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export class HotProcessor<T extends ECompilerType> extends BasicProcessor<T> {
(options as TCompilerOptions<ECompilerType.Rspack>).plugins!.push(
new rspack.HotModuleReplacementPlugin()
);
// TODO: replace this with common plugin
(options as TCompilerOptions<ECompilerType.Rspack>).plugins!.push({
apply(compiler: Compiler) {
compiler.hooks.compilation.tap("HMR_TEST_PLUGIN", compilation => {
Expand Down

0 comments on commit 2424c1b

Please sign in to comment.