Skip to content

Commit 3e7ec45

Browse files
committed
fix: failed to enable lazy compilation in some cases
1 parent bc0d1ac commit 3e7ec45

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/core/src/plugins/lazyCompilation.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ export const pluginLazyCompilation = (): RsbuildPlugin => ({
2929
imports: true,
3030
},
3131
});
32+
return;
3233
}
33-
} else {
34-
chain.experiments({
35-
...chain.get('experiments'),
36-
lazyCompilation: options,
37-
});
3834
}
35+
chain.experiments({
36+
...chain.get('experiments'),
37+
lazyCompilation: options,
38+
});
3939
});
4040
},
4141
});

0 commit comments

Comments
 (0)