Skip to content

Commit

Permalink
Release 12.0.2 (#118)
Browse files Browse the repository at this point in the history
* chore: prepare next dev release

* fix: add runtimeChunk single to fix HMR (#117)

### Developer Checklist (Definition of Done)

**Issue**

- [x] All acceptance criteria from the issue are met
- [x] Tested in latest Chrome/Firefox

**UI/UX/Vis**

- [ ] Requires UI/UX/Vis review
  - [ ] Reviewer(s) are notified (_tag assignees_)
  - [ ] Review has occurred (_link to notes_)
  - [ ] Feedback is included in this PR
  - [ ] Reviewer(s) approve of concept and design

**Code**

- [x] Branch is up-to-date with the branch to be merged with, i.e.,
develop
- [x] Code is cleaned up and formatted
- [ ] Unit tests are written (frontend/backend if applicable)
- [ ] Integration tests are written (if applicable)

**PR**

- [x] Descriptive title for this pull request is provided (will be used
for release notes later)
- [x] Reviewer and assignees are defined
- [x] Add type label (e.g., *bug*, *feature*) to this pull request
- [x] Add release label (e.g., `release: minor`) to this PR following
[semver](https://semver.org/)
- [x] The PR is connected to the corresponding issue (via `Closes #...`)
- [x] [Summary of changes](#summary-of-changes) is written


### Summary of changes

- Fix HMR by forcing single runtime chunk

### Screenshots


### Additional notes for the reviewer(s)

-  
Thanks for creating this pull request 🤗

* Prepare release version 12.0.2

---------

Co-authored-by: datavisyn-bot <>
Co-authored-by: Michael Pühringer <[email protected]>
  • Loading branch information
puehringer authored Jan 22, 2025
2 parents 9a08d1a + 278d45f commit d9d001e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions config/rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ module.exports = (webpackEnv, argv) => {
const useTailwind = fs.existsSync(path.join(workspacePath, 'tailwind.config.js'));

return defineConfig({
watchOptions: {
// Override the ignore to avoid ignoring node_modules: https://github.com/web-infra-dev/rspack/pull/8645
ignored: /[\\/](?:\.git)[\\/]/,
},
mode,
// Logging noise constrained to errors and warnings
stats: 'errors-warnings', // { logging: 'verbose', timings: true, assets: true },
Expand Down Expand Up @@ -174,6 +178,8 @@ module.exports = (webpackEnv, argv) => {
},
},
optimization: {
// Without this, HMR is broken: https://github.com/pmmmwh/react-refresh-webpack-plugin/issues/394#issuecomment-1463926441
runtimeChunk: isEnvDevelopment ? 'single' : undefined,
minimizer: [
// Disable compress and mangle as it has some bugs, i.e. when using arquero#from it fails if no names are passed.
// See https://github.com/web-infra-dev/rspack/issues/4980 for a discussion.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "visyn_scripts",
"description": "",
"version": "12.0.1",
"version": "12.0.2",
"author": {
"name": "datavisyn GmbH",
"email": "[email protected]",
Expand Down

0 comments on commit d9d001e

Please sign in to comment.