Skip to content

Commit 54fa1cd

Browse files
fix: remove enforcement of output filenames in dev (#1074)
* chore: remove enforcement of output filenames in dev * Remove enforcement of output filenames in dev mode
1 parent c9c01ee commit 54fa1cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.changeset/good-apes-grab.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@callstack/repack": patch
3+
---
4+
5+
Remove enforcement of output filenames in dev mode

packages/repack/src/plugins/DevelopmentPlugin.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ export class DevelopmentPlugin implements RspackPluginInstance {
121121
// set public path for development with dev server
122122
compiler.options.output.publicPath = `${protocol}://${host}:${port}/${platform}/`;
123123

124-
// enforce output filenames in development mode
125-
compiler.options.output.filename = (pathData) =>
126-
pathData.chunk?.name === 'main' ? 'index.bundle' : '[name].bundle';
127-
compiler.options.output.chunkFilename = '[name].chunk.bundle';
128-
129124
if (compiler.options.devServer.hot) {
130125
// setup HMR
131126
new compiler.webpack.HotModuleReplacementPlugin().apply(compiler);

0 commit comments

Comments
 (0)