diff --git a/v3-docs/docs/about/modern-build-stack/rspack-bundler-integration.md b/v3-docs/docs/about/modern-build-stack/rspack-bundler-integration.md index 2955fff875..9674625a18 100644 --- a/v3-docs/docs/about/modern-build-stack/rspack-bundler-integration.md +++ b/v3-docs/docs/about/modern-build-stack/rspack-bundler-integration.md @@ -546,6 +546,27 @@ module.exports = defineConfig(Meteor => ({ })); ``` +### Cache + +Meteor cache remains active and continues to handle Atmosphere packages and intermediate builds. There’s 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 don’t have to handle it manually. + ### Service Worker Rspack lets you use standard plugins to manage Service Workers, such as Workbox, so you don’t 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). diff --git a/v3-docs/docs/generators/changelog/versions/3.4.0.md b/v3-docs/docs/generators/changelog/versions/3.4.0.md index e24a3c8632..fe7d1895a8 100644 --- a/v3-docs/docs/generators/changelog/versions/3.4.0.md +++ b/v3-docs/docs/generators/changelog/versions/3.4.0.md @@ -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) ✨✨✨