Skip to content

Commit f6460bd

Browse files
authored
fix: remove runtimeChunk config for ESM web app (#6573)
1 parent bf91f28 commit f6460bd

File tree

1 file changed

+0
-5
lines changed
  • packages/core/src/plugins

1 file changed

+0
-5
lines changed

packages/core/src/plugins/esm.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ export const pluginEsm = (): RsbuildPlugin => ({
1111
return;
1212
}
1313

14-
if (target === 'web') {
15-
// Temporary solution to fix the issue of runtime chunk not loaded as expected.
16-
chain.optimization.runtimeChunk(true);
17-
}
18-
1914
if (target === 'node') {
2015
chain.output.library({
2116
...chain.output.get('library'),

0 commit comments

Comments
 (0)