Skip to content

Commit 39851bf

Browse files
authored
Release 14.0.1 (#163)
## What's Changed * Fix: adjust respack config to fix hmr by @hammisaad in #162 ## New Contributors * @hammisaad made their first contribution in #162 **Full Changelog**: v14.0.0...v14.0.1
2 parents ee0cbe3 + 4dd96e6 commit 39851bf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

config/rspack.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,10 @@ module.exports = (webpackEnv, argv) => {
161161
// Add /* filename */ comments to generated require()s in the output.
162162
// TODO: rspack: pathinfo: isEnvDevelopment,
163163
// There will be one main bundle, and one file per asynchronous chunk.
164-
filename: '[name].[contenthash:8].js',
164+
// Fix HMR error in development: https://github.com/webpack/webpack-dev-server/issues/3168#issuecomment-816709164
165+
filename: isEnvDevelopment ? '[name].js' : '[name].[contenthash:8].js',
165166
// There are also additional JS chunk files if you use code splitting.
166-
chunkFilename: '[name].[contenthash:8].chunk.js',
167+
chunkFilename: isEnvDevelopment ? '[name].chunk.js' : '[name].[contenthash:8].chunk.js',
167168
assetModuleFilename: 'assets/[name].[hash][ext]',
168169
// webpack uses `publicPath` to determine where the app is being served from.
169170
// It requires a trailing slash, or the file assets will get an incorrect path.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "visyn_scripts",
33
"description": "",
4-
"version": "14.0.0",
4+
"version": "14.0.1",
55
"author": {
66
"name": "datavisyn GmbH",
77
"email": "[email protected]",

0 commit comments

Comments
 (0)