Skip to content

Commit 1276e25

Browse files
committed
fix: allow custom lazyCompilation.backend.client
1 parent 6e6b3ce commit 1276e25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/rspack/src/builtin-plugin/lazy-compilation

packages/rspack/src/builtin-plugin/lazy-compilation/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ export default class LazyCompilationPlugin {
3131

3232
apply(compiler: Compiler) {
3333
const backend = getBackend({
34-
...this.backend,
3534
client: require.resolve(
3635
`../hot/lazy-compilation-${
3736
compiler.options.externalsPresets.node ? "node" : "web"
3837
}.js`
39-
)
38+
),
39+
...this.backend
4040
});
4141

4242
new BuiltinLazyCompilationPlugin(

0 commit comments

Comments
 (0)