document Rspack cache configuration options in the integration guide. Enhance changelog by linking related PRs for better traceability and credit additional contributors.

This commit is contained in:
Nacho Codoñer
2025-10-21 16:44:09 +02:00
parent 10c8e62a81
commit 1a8448446f
2 changed files with 32 additions and 9 deletions

View File

@@ -546,6 +546,27 @@ module.exports = defineConfig(Meteor => ({
}));
```
### Cache
Meteor cache remains active and continues to handle Atmosphere packages and intermediate builds. Theres an additional cache layer managed by Rspack to speed up rebuilds for your app code.
This Rspack cache is enabled by default in persistent mode. If you [encounter issues](https://github.com/web-infra-dev/rspack/issues/11804) or prefer to disable it, you can do so in your `rspack.config.js` using the helper:
```json
const { defineConfig } = require('@meteorjs/rspack');
const { rspack } = require('@rspack/core');
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
module.exports = defineConfig(Meteor => ({
// Disable cache, or use 'memory' to switch to in-memory cache
...Meteor.setCache(false),
}));
```
This helper provide a shortcut to apply the needed Rspack configuration and safely override defaults, so you dont have to handle it manually.
### Service Worker
Rspack lets you use standard plugins to manage Service Workers, such as Workbox, so you dont need to maintain your own setup. You can follow the Webpack guide for integrating Workbox with [`workbox-webpack-plugin`](https://developer.chrome.com/docs/workbox/modules/workbox-webpack-plugin) (it should be compatible), or try the Rspack-specific version [`@aaroon/workbox-rspack-plugin`](https://github.com/Clarkkkk/workbox-rspack-plugin).

View File

@@ -2,7 +2,7 @@
### Highlights
- **Meteor-Rspack Integration**
- **Meteor-Rspack Integration**, [PR#13910](https://github.com/meteor/meteor/pull/13910)
- ⚡ New `rspack` package
Orchestrates the full Rspack setup, including the development server and production builds.
- 📦 New `@meteorjs/rspack` npm package
@@ -16,13 +16,13 @@
- Adopting Rspack gives you a faster build experience
- Adopting Rspack produces smaller bundle sizes through advanced tree shaking
- Adopting Rspack lets you extend your app with modern setups and tooling
- Optimize react-meteor-data Suspense hooks and isEqual checks
- Meteor runtime now shows `--raw-logs` by default, use `--timestamps` to keep timestamps
- Integrate `collection-extensions` into core
- Fix OPLOG includeCollections/excludeCollections when admin.$cmd happens
- Report Mongo SIGILL crash errors
- Fix bulk remove in LocalCollection to remove all items
- Upgrade to Node v22.20.0
- Optimize react-meteor-data Suspense hooks and isEqual checks, [PR#456](https://github.com/meteor/react-packages/pull/456)
- Meteor runtime now shows `--raw-logs` by default, use `--timestamps` to keep timestamps, [PR#13944](https://github.com/meteor/meteor/pull/13944)
- Integrate `collection-extensions` into core, [PR#13830](https://github.com/meteor/meteor/pull/13830)
- Fix OPLOG includeCollections/excludeCollections when admin.$cmd happens, [PR#13949](https://github.com/meteor/meteor/pull/13949)
- Report Mongo SIGILL crash errors, [PR#13930](https://github.com/meteor/meteor/pull/13930)
- Fix bulk remove in LocalCollection to remove all items, [PR#13965](https://github.com/meteor/meteor/pull/13965)
- Upgrade to Node v22.20.0, [PR#13992](https://github.com/meteor/meteor/pull/13992)
All Merged PRs@[GitHub PRs 3.4](https://github.com/meteor/meteor/pulls?q=is%3Apr+is%3Amerged+base%3Arelease-3.4)
@@ -114,6 +114,8 @@ If you find any issues, please report them to the [Meteor issues tracker](https:
- [@StorytellerCZ](https://github.com/StorytellerCZ)
- [@turoar23](https://github.com/turoar23)
- [@DipakHalkude](https://github.com/DipakHalkude)
- [@sanki92](https://github.com/sanki92),
- [@sanki92](https://github.com/sanki92)
- [@evolross](https://github.com/evolross)
- [@malua](https://github.com/malua)
✨✨✨