Skip to content

Commit 572ea4b

Browse files
felixmosheungyeole
authored andcommitted
feat: point hmr files to hot folder
1 parent f89cb68 commit 572ea4b

File tree

1 file changed

+4
-0
lines changed
  • packages/rsbuild-plugin-web-extension/src

1 file changed

+4
-0
lines changed

packages/rsbuild-plugin-web-extension/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ export const pluginWebExtension = ({
4646

4747
api.modifyRspackConfig((config, { mergeConfig, HtmlPlugin }) => {
4848
return mergeConfig(config, {
49+
output: {
50+
hotUpdateChunkFilename: "hot/[id].[fullhash].hot-update.js",
51+
hotUpdateMainFilename: "hot/[runtime].[fullhash].hot-update.json",
52+
},
4953
plugins: htmlEntryPoints.map(([name, template]) => {
5054
return new HtmlPlugin({
5155
chunks: [name],

0 commit comments

Comments
 (0)