What's Changed
Highlights
Provide type declaration for builtin:swc-loader
@rspack/core
now provides the type declaration for builtin:swc-loader
, which can help you to configure the swc-loader correctly:
// rspack.config.js
module.exports = {
module: {
rules: [
{
test: /\.js$/,
use: {
loader: 'builtin:swc-loader',
+ /** @type {import('@rspack/core').SwcLoaderOptions} */
options: {
// some options
},
},
},
],
},
};
Updated Plugin Documentation for Rspack
We've revamped the plugin documentation for Rspack to enhance clarity and improve your experience.
Please visit: https://www.rspack.dev/plugins
Exciting New Features 🎉
- feat: split lint-website ci by @SyMind in #6260
- feat: context module lazy mode codegen diff by @ahabhgk in #6273
- feat(rspack_mf_plugin): federation runtime runtime module by @ScriptedAlchemy in #6275
- feat: provide type declaration for builtin:swc-loader by @chenjiahan in #6314
Bug Fixes 🐞
- fix: stats in multiple runner by @LingyuCoder in #6264
- fix: JsPathData type by @ahabhgk in #6265
- fix: add sourcemap file to chunk.auxiliaryFiles by @hulin32 in #6125
- fix: export types of
ModuleFilenameHelpers
andTemplate
by @h-a-n-a in #6279 - fix: performance degradation for auxiliary files by @SyMind in #6278
- fix: avoid invoking
toJSON
method ofadditionalData
by @NotEvenANeko in #5904 - fix: progress bar draw interval by @LingyuCoder in #6291
- fix(binding): fix type error of binding.d.ts; add test for binding.d.ts by @xc2 in #6274
- fix: should minimize asset with query by @LingyuCoder in #6301
- fix: compilation.import_module use immutable ref by @jerrykingxyz in #6311
- fix: swc-loader options.sourceMaps not work by @chenjiahan in #6317
Other Changes
- docs: use PackageManagerTabs to display install commands by @chenjiahan in #6263
- docs: update DefinePlugin docs by @SyMind in #6259
- docs: update ProvidePlugin docs by @SyMind in #6261
- docs: update SourceMapDevToolPlugin docs by @SyMind in #6262
- docs: table shows the support status of built-in plugins by @SyMind in #6254
- docs: EnvironmentPlugin docs by @SyMind in #6266
- chore: stable hot step test by @LingyuCoder in #6267
- docs: improve style of API meta tags by @chenjiahan in #6269
- docs: LimitChunkCountPlugin by @SyMind in #6270
- chore: remove hot document by @LingyuCoder in #6271
- chore: use lint-staged in website by @SyMind in #6277
- docs: update scaffolding part of quick start document by @chenjiahan in #6280
- refactor: split task in make stage by @jerrykingxyz in #6258
- docs: bump Rspress v1.18.2 and remove dividers by @chenjiahan in #6283
- docs: update plugin support status table by @SyMind in #6285
- docs(website): consolidate guide / languages and Frameworks by @Boshen in #6282
- docs: hmr plugin docs by @SyMind in #6284
- docs: NormalModuleReplacementPlugin by @xc2 in #6287
- chore: add jsdom web runner by @LingyuCoder in #6286
- docs: fix the online codesandbox example by @chenjiahan in #6294
- docs: fix all broken plugin links by @chenjiahan in #6296
- docs: make PluginSupportStatusTable responsive by @xc2 in #6302
- docs: update minification guides by @chenjiahan in #6297
- chore: fix snapshot of testng by @LingyuCoder in #6309
- chore: Retrieve ecosystem CI results without displaying in main CI status by @SyMind in #6308
- chore: Add lark notification for new Issue and PR by @yuyutaotao in #6313
- refactor: make trait
Module
'static
by @h-a-n-a in #6292 - docs: bump Rspress to 1.18.3 by @Timeless0911 in #6322
New Contributors
- @hulin32 made their first contribution in #6125
- @Timeless0911 made their first contribution in #6322
Full Changelog: v0.6.2...v0.6.3