Releases: web-infra-dev/rspack
Releases Β· web-infra-dev/rspack
v0.7.0-beta.2
What's Changed
Performance Improvements β‘
- perf(core): prebundle enhanced-resolve to reduce dependencies by @chenjiahan in #6585
Exciting New Features π
- feat: remove snapshot config by @jerrykingxyz in #6593
Bug Fixes π
- fix: support
"..."
in importFields by @ahabhgk in #6363 - fix: optional context dependency by @LingyuCoder in #6587
- fix: panic when update entry dependency by @jerrykingxyz in #6591
- fix: context module after resolve by @ahabhgk in #6595
- fix: fix module type export name by @JSerFeng in #6600
Document Updates π
- docs: add moment-locales-webpack-plugin support status by @9aoy in #6601
- docs: translate the dev guide by @SoonIter in #6584
- docs: fix the video component in md by @SoonIter in #6604
- docs: change Storybook migration to storybook-rsbuild by @fi3ework in #6599
Other Changes
- test: compiler type extends by @LingyuCoder in #6582
- refactor: create codegen dependencies by @ahabhgk in #6588
- release: 0.7.0-beta.1 by @9aoy in #6586
- test: fix hot snapshot recovery checker by @LingyuCoder in #6589
- test: check hot step match by @LingyuCoder in #6592
- revert: revert swc comment preserver (#6389) by @h-a-n-a in #6598
- chore: remove old treeshaking by @JSerFeng in #6549
- test: allow optional test options by @LingyuCoder in #6603
Full Changelog: v0.7.0-beta.1...v0.7.0-beta.2
v0.7.0-beta.1
What's Changed
Exciting New Features π
Bug Fixes π
- fix: change the data URI type in ModuleFederationPlugin by @chenjiahan in #6567
- fix: module_executor keep make_failed_module by @jerrykingxyz in #6565
- fix: finish_module_task skip self reference connection by @jerrykingxyz in #6570
- fix: css-extract-plugin should keep file dependencies by @JSerFeng in #6576
Document Updates π
- docs: remove canary comment release in contribute guide by @LingyuCoder in #6566
- docs: new testing guide by @LingyuCoder in #6519
- docs: list more webpack-contrib plugins compatible by @9aoy in #6578
Other Changes
- test: move normal case with rspack.config.js by @LingyuCoder in #6561
- test: snapshot directory should be snapshots by @LingyuCoder in #6564
- chore: remove exportsConvention for css generator by @ahabhgk in #6555
- test: fix dependencies of test tools by @LingyuCoder in #6575
- test: fix dependencies of test tools by @LingyuCoder in #6577
- test: pass expect in test env by @LingyuCoder in #6579
Full Changelog: v0.7.0-beta.0...v0.7.0-beta.1
v0.7.0-beta.0
What's Changed
Breaking Changes π
- chore: update swc by @JSerFeng in #6441
- feat: deprecate
Compiler
andMultiCompiler
API by @h-a-n-a in #6448 - feat: deprecate
Compilation
API by @h-a-n-a in #6505
Performance Improvements β‘
Exciting New Features π
- feat: compat chunkGroup.chunks by @ahabhgk in #6490
- feat: support performance config by @inottn in #6456
- feat: support resolve.enforceExtension / descriptionFiles / importsFields options by @9aoy in #6491
- feat: support contextModuleFactory beforeResolve hook by @SyMind in #6420
- feat: export types of CSS extract plugin by @chenjiahan in #6528
- feat: improve diagnostics if expressions passed into
DefinePlugin
are failed to parse by @shulaoda in #6382 - feat: support cjs css with css esModule generator options by @ahabhgk in #6376
- feat(create-rspack): add template-vue-ts by @cnryb in #5834
Bug Fixes π
- fix(rspack_plugin_mf): add chunk js matcher runtime to federation runtime by @ScriptedAlchemy in #6434
- fix: systemjs runtime extra semicolon by @LingyuCoder in #6492
- fix: make *_dependencies memory leak by @jerrykingxyz in #6498
- fix(minimizer): resolve error in minimizing esm asset file by @xc2 in #6521
- fix: make entry add include dependencies by @jerrykingxyz in #6527
- fix: make code-splitting deterministic by @JSerFeng in #6508
- fix: when comparing, cache group index should consider before modules by @JSerFeng in #6547
Document Updates π
- docs: check documentation coverage by @SyMind in #6468
- docs: update community plugin compatibility list by @9aoy in #6476
- docs(zh): update guide plugins by @chenjiahan in #6475
- docs: complete watchOptions configurations by @9aoy in #6479
- docs: remove inconsistent title by @SoonIter in #6484
- docs: improve compat table style by @chenjiahan in #6485
- docs: remove loader compatible page by @9aoy in #6493
- docs: add some links for awesome-rspack by @chenjiahan in #6497
- docs: internal plugins doc by @SyMind in #6483
- docs: fix wrong heading by @inottn in #6507
- docs: add missing
module
option of swc minimizer plugin by @emosheeep in #6506 - docs: add webpack-aligned plugin link by @9aoy in #6511
- docs: make the cases correct by @chenjiahan in #6510
- docs: duplicated ignoreOrder option in CssExtractPlugin by @chenjiahan in #6516
- docs: move rspack dev guide to documentation site by @SoonIter in #6515
- docs: reorganize the structure of dev guide by @chenjiahan in #6518
- docs: update outdated links and contents in dev guide by @chenjiahan in #6520
- docs: rename Node.js API to JavaScript API by @chenjiahan in #6529
- docs: update documentation contribution by @hardfist in #5993
- docs: dev server docs by @SyMind in #6530
- docs: improve plugins docs by @SyMind in #6545
Other Changes
- ci: remove openssl-legacy-provider flag by @SyMind in #6469
- refactor: make hooks remove make_param by @jerrykingxyz in #6489
- ci: release canary by dispatch by @LingyuCoder in #6502
- ci: contribution hook by @LingyuCoder in #6503
- chore: remove Boshen from the team by @Boshen in #6509
- chore(infra): update .nvmrc by @SoonIter in #6517
- chore(deps): update crates by @renovate in #6467
- test: add type of defaults cases by @LingyuCoder in #6524
- refactor: make
make_artifact
as raw data by @jerrykingxyz in #6526 - test: add type of hook cases by @LingyuCoder in #6531
- refactor: remove browserField by @ahabhgk in #6535
- chore: add eslint for import order sorting by @h-a-n-a in #6539
- test: use @rspack/core as config type by @LingyuCoder in #6538
- ci: renovate lark trigger by @LingyuCoder in #6542
- chore: remove new split chunks options by @ahabhgk in #6536
- refactor: align js render bootstrap by @ahabhgk in #6534
- chore(deps): update crates by @renovate in #6541
- chore(deps): update swc by @renovate in #6540
- chore: revert cargo lock to fix ci by @ahabhgk in #6544
- test: remove old treeshaking by @LingyuCoder in #6537
- chore: remove define plugin in rspack-cli by @LingyuCoder in #6219
- refactor: remove build & resolve_module cache by @jerrykingxyz in #6548
- chore(deps): update dependency sass-loader to v14 by @renovate in #6430
- test: config file type by @LingyuCoder in #6552
- ci: support release beta version by @9aoy in #6558
New Contributors
- @inottn made their first contribution in #6456
- @emosheeep made their first contribution in #6506
- @shulaoda made their first contribution in #6382
- @cnryb made their first contribution in #5834
Full Changelog: v0.6.5...v0.7.0-beta.0
v0.6.5
Hotfixes
- fix: template strings panic by @ahabhgk in #6473
- fix: should distinguish context for css modules local ident name by @ahabhgk in #6472
What's Changed
Performance Improvements β‘
- perf(core): use prebundle to reduce dependencies by @chenjiahan in #6462
- perf: on-demand sourcemap generation by @h-a-n-a in #6443
Bug Fixes π
- fix(cli): load
@rspack/dev-server
on demand by @xc2 in #6370 - fix: remove --force flag to fix prebundle by @chenjiahan in #6465
- fix: add trace log for module executor by @jerrykingxyz in #6451
Document Updates π
- docs: update guide plugins by @leimonio in #6466
- docs(html-plugin): add comparison and examples by @chenjiahan in #6471
Other Changes
- docs: fix ApiMeta component href by @Timeless0911 in #6461
- chore: add tag to docs pr and release note by @LingyuCoder in #6464
New Contributors
Full Changelog: v0.6.4...v0.6.5
v0.6.4
What's Changed
Performance Improvements β‘
- perf(core): remove events dependency by @chenjiahan in #6329
- perf: optimize execute module by @jerrykingxyz in #6415
Exciting New Features π
- feat: support context module critical by @ahabhgk in #6331
- feat: support more methods for
errors
andwarnings
inCompilation
by @coder-xiaotian in #6300 - feat: diff context module sync mode by @ahabhgk in #6354
- feat: diagnostic with labels by @h-a-n-a in #6001
- feat: support pathinfo option by @SyMind in #6326
- feat(copyRspackPlugin): support transform configuration by @9aoy in #6375
- feat: support dynamic entry by @SyMind in #6393
- feat: add message comment for block promise by @ahabhgk in #6403
- feat: export Chunk and Module types from
@rspack/core
by @chenjiahan in #6421
Bug Fixes π
- fix(create-rspack): remove useless sourceMap option in templates by @chenjiahan in #6319
- fix: incremental rebuild clean module_graph.block & dependencies by @jerrykingxyz in #6298
- fix: align get_nested_exports_info with webpack by @JSerFeng in #6351
- fix: default resolve roots by @ahabhgk in #6340
- fix: errors thrown in userland callbacks should not panic by @h-a-n-a in #6082
- fix: process dependencies task remove resolve_options by @jerrykingxyz in #6377
- fix: swc minimizer extracted comments should be stable by @h-a-n-a in #6380
- fix: minify comments extract by @LingyuCoder in #6386
- fix: runtimeChunk should control all entries' runtime by @ahabhgk in #6388
- fix(mf): remove empty chunk mapping by @ahabhgk in #6394
- fix(config): snapshot.module accept
{ timestamp: true}
by @SoonIter in #6387 - fix: swc parser should always preserve comments by @h-a-n-a in #6389
- fix: wrong module source by @h-a-n-a in #6396
- fix(config): support snapshot config {timestamp: true} and {hash: true} by @SoonIter in #6399
- fix: handle unhandled scheme by @h-a-n-a in #6404
- fix: allow all characters for webpackChunkName by @xc2 in #6411
- fix: remove outdated TODOs in runtime code by @chenjiahan in #6409
- fix: comment preserver should be placed prior to inline globals by @h-a-n-a in #6423
- fix(rspack_loader_runner): char_boundary panic when debug content by @SoonIter in #6412
- fix(mf): webpack_init_sharing with empty config by @ahabhgk in #6450
- fix: consistent md4 hash in localNameIdent by @LingyuCoder in #6444
Document Updates π
- docs: enable cleanUrls for website by @chenjiahan in #6330
- docs: use meta.json to generate nav and sidebar configs by @chenjiahan in #6345
- docs: improve homepage style by @chenjiahan in #6365
- docs: update react doc by @h-a-n-a in #6371
- docs: sort about docs to make them more clear by @chenjiahan in #6378
- docs: fix readme.md credits links by @LingyuCoder in #6383
- docs: update outdated FAQs by @chenjiahan in #6384
- docs: improve team member list styles by @chenjiahan in #6385
- docs: css modules guides by @SyMind in #6397
- docs: add v1.0 release plan to roadmap by @chenjiahan in #6405
- docs: fix banner link by @Sunny-117 in #6401
- docs: split plugins api by @SyMind in #6400
- docs: split loader docs by @SyMind in #6442
- docs: add blogs overview page by @chenjiahan in #6446
- docs: split module methods docs by @SyMind in #6447
- docs: fix modules docs crash by @SyMind in #6449
Other Changes
- chore(deps): bump express from 4.18.1 to 4.19.2 in /packages/rspack-dev-server by @dependabot in #6316
- refactor: import context dependency param evaluate by @ahabhgk in #6321
- chore: bump oxc_resolver to v1.6.7 by @Boshen in #6320
- chore: do NOT trigger lark notification for issues from project member by @yuyutaotao in #6327
- chore: Use team.yml file to filter team member when sending notification by @yuyutaotao in #6333
- refactor: remove is_new_treeshaking in module_graph by @jerrykingxyz in #6334
- chore: add hot step runtime test by @LingyuCoder in #6318
- chore: migrate config test cases by @LingyuCoder in #6335
- chore: migrate config test cases by @LingyuCoder in #6338
- chore: migrate normal cases by @LingyuCoder in #6336
- chore: remove case sensitive case by @LingyuCoder in #6342
- chore: remove case sensitive case of webpack-test by @LingyuCoder in #6343
- chore: migrate test hot by @LingyuCoder in #6341
- chore: move config case of context module by @LingyuCoder in #6346
- chore: migrate test diagnostic by @LingyuCoder in #6348
- chore: remove repetitive words by @findmyhappy in #6347
- chore: migrate stats cases by @LingyuCoder in #6349
- test: add hook cases by @h-a-n-a in #6241
- chore(api-extractor): exclude warning and add forgotten exports to report by @h-a-n-a in #6352
- chore: migrate compat case by @LingyuCoder in #6353
- chore(deps): bump webpack-dev-middleware from 6.0.2 to 6.1.2 in /packages/rspack-dev-server by @dependabot in #6288
- chore: migrate css extract test by @LingyuCoder in #6360
- chore: move resolve roots test by @ahabhgk in #6361
- chore: migrate copy plugin cases by @LingyuCoder in #6362
- refactor: split cutout and repair step in make by @jerrykingxyz in #6364
- chore: modify cwd of test cases and refactor some case creator by @LingyuCoder in #6367
- chore: migrate test remain by @LingyuCoder in #6369
- chore: jsdom windows by @LingyuCoder in #6379
- refactor: diff context module lazy once mode by @ahabhgk in #6398
- chore: move rspack_core macro test by @ahabhgk in #6395
- refactor: weak, async-weak, eager mode context module codegen diff by @ahabhgk in #6406
- chore: test directory by @LingyuCoder in #6408
- chore(deps): fix renovate configuration by @xc2 in #6410
- chore: add type to file level cases by @LingyuCoder in #6416
- chore: add type to webpack.config.js cases by @LingyuCoder in #6417
- chore: hook case creator by @LingyuCoder in #6419
- chore(deps): update crates by @renovate in #6424
- chore: take down diff&canary release workflow temporarily by @hardfist in #6455
- chore: add x test plugin by @LingyuCoder in #6459
- chore: remove tok...
v0.6.3
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
v0.6.2
What's Changed
Performance Improvements β‘
- perf: bitwise operation in code splitter by @SyMind in #6167
- perf: use set as queue for flag_dependency_usage_plugin by @JSerFeng in #6203
- perf: remove bad par_iter by @SyMind in #6199
Exciting New Features π
- feat: support Internal IgnorePlugin by @9aoy in #6166
- feat: support function filename and chunkFilename by @JSerFeng in #6216
- feat: support css module :export by @JSerFeng in #6223
- feat: support checkResource option in IgnorePlugin by @9aoy in #6249
- feat: add
emit
option for asset modules by @chenjiahan in #6255
Bug Fixes π
- fix: should parse patterns in class by @h-a-n-a in #6198
- fix: favicon path of HtmlRspackPlugin by @LingyuCoder in #6200
- fix(mf-1): conflict module map in multi container by @ahabhgk in #6176
- fix: align alias with webpack by @ilteoood in #5500
- fix: builtin swc loader input sourcemap by @2239559319 in #5492
- fix: correct active state when side effects is disabled by @ahabhgk in #6210
- fix: swc plugins not being able to spawn threads by @h-a-n-a in #6229
- fix: dependencies span should rely on final ast by @JSerFeng in #6252
- fix: json empty array panic by @ahabhgk in #6253
- fix: napi value convert error in css-loader by @ahabhgk in #6250
- fix(core): update module federation runtime by @ScriptedAlchemy in #6247
Other Changes
- docs: fix css-extract-rspack-plugin typos by @edbzn in #6184
- ci: doc workflow check skipable by @LingyuCoder in #6191
- ci: fix doc reuseable workflow by @LingyuCoder in #6195
- docs: fix type in guide for upgrading to 0.6 by @mavridiSS in #6194
- refactor: rest compilation hooks by @ahabhgk in #6196
- refactor: remove old hook trait by @ahabhgk in #6205
- docs: modify treeshaking sideEffects docs and remove removeAvaModules config by @JSerFeng in #6204
- chore(website): enable typos check by @Boshen in #6206
- docs: add re-exports optimization diagram by @chenjiahan in #6207
- refactor: module executor independent of the build process by @jerrykingxyz in #6202
- docs: correct import path in treeshaking demo by @hai-x in #6224
- docs: add IgnorePlugin introduction by @9aoy in #6220
- chore(docs): improve benchmark appearance by @Boshen in #6228
- docs(website): fix broken right nav in join-us page by @Boshen in #6232
- docs(website): move sections around in guide by @Boshen in #6231
- docs: prettier by @SyMind in #6234
- docs(website): switch images to cdn urls and remove all image binaries by @Boshen in #6235
- docs: add image assets guide to website README by @chenjiahan in #6237
- docs: improve website ci by @SyMind in #6201
- docs(webiste): tweak the recruiting message; balance parenthesis on a wording by @Boshen in #6175
- docs(website): change "get started" button to primary and "intro" button to secondary by @Boshen in #6177
- chore: update CODEOWNERS by @Boshen in #6238
- chore: remove crates/cargo-rst which is not used anymore by @Boshen in #6239
- chore: hot step test by @LingyuCoder in #6182
- chore: introduce api-extractor by @h-a-n-a in #6208
- chore: update api snapshot by @h-a-n-a in #6251
- chore: update package manager of webpack-test README by @chenjiahan in #6257
New Contributors
- @edbzn made their first contribution in #6184
- @mavridiSS made their first contribution in #6194
- @ilteoood made their first contribution in #5500
- @2239559319 made their first contribution in #5492
- @hai-x made their first contribution in #6224
Full Changelog: v0.6.1...v0.6.2
v0.6.1
What's Changed
Highlights
Fixed a case where locally defined variables in class being falsely transformed
class Example {
constructor(global = false) {
this.global = global
}
}
global
should be kept as-is with node.global = true
if target
includes 'web'
.
Exciting New Features π
- feat: support stats of prefetch and preload by @LingyuCoder in #6151
Bug Fixes π
- fix: wrong asset info after updateAsset by @ahabhgk in #6156
- fix(ci): compilation file prettier error by @9aoy in #6170
- fix: should keep locally defined variables in class by @h-a-n-a in #6183
Other Changes
- docs(website): enable oxlint by @Boshen in #6159
- docs: improve plugin docs by @SyMind in #6088
- chore: add js and toml format check on ci by @jerrykingxyz in #6157
- docs: fix devServer typo by @dios-david in #6162
- chore(deps): update swc by @renovate in #6163
- refactor: render manifest and hash hook by @ahabhgk in #6154
- chore: use workspace rspack version in create-rspack template by @9aoy in #6169
- chore(deps): update npm dev dependencies by @renovate in #5863
- docs(website): fix casing for TypeScript, NestJS and ECMAScript by @Boshen in #6171
- docs(website): remove contributors list from home page by @Boshen in #6174
- chore: lock corepack by @h-a-n-a in #6180
- docs(webiste): change the hiring link in announcement to /misc/join-us by @Boshen in #6179
- chore: use prettier3 to format code by @ahabhgk in #6181
- docs: announcing 0.6 by @LingyuCoder in #6165
- chore: update rspack-sources by @JSerFeng in #6188
New Contributors
- @dios-david made their first contribution in #6162
Full Changelog: v0.6.0...v0.6.1
v0.6.0
Rspack 0.6.0 is out!
Read the announcement blog post: Announcing Rspack 0.6.
Overview
- Support builtin mini-css-extract-plugin
- Enable new tree shaking by default
- Align experiments css options with webpack and remove builtins css
- Remove
compiler.build
andcompiler.rebuild
- Update swc to 0.90.x
What's Changed
Breaking Changes π
- chore: update swc by @h-a-n-a in #6009
- chore: remove
compiler.build
andcompiler.rebuild
by @h-a-n-a in #6066 - chore: π€ enable new tree shaking by default by @IWANABETHATGUY in #6145
- refactor: align experiments css options and remove builtins css by @ahabhgk in #6086
Performance Improvements β‘
- perf: use mimalloc for musl target by @xc2 in #6071
- perf(core): Use unicase for compare_ids by @quininer in #6085
- perf: β‘οΈ reduce alloc in ModuleGraphAccessor impl by @IWANABETHATGUY in #6136
- perf: module group get_key by @SyMind in #6142
- perf: integrate chunks by @SyMind in #6153
Exciting New Features π
- feat: mini-css-extract-plugin by @JSerFeng in #5072
- feat: enable incremental_rebuild when use new treeshaking by @jerrykingxyz in #6029
- feat: export MultiStats class by @chenjiahan in #6058
- feat(rspack): NormalModuleReplacementPlugin by @xc2 in #6028
- feat: support more intuitive CSS diagnostic by @luhc228 in #6040
- feat: support entry.dependOn by @LingyuCoder in #6069
- feat: support compilation.hooks.afterSeal by @LingyuCoder in #6090
- feat: support css default export and named export at same time by @ahabhgk in #6107
- feat(swc_plugin_import): legacy kebab/snake case for legacy babel-plugin-import compatibility by @xc2 in #6070
- feat: support dependOn in chunk split by @SyMind in #6109
Bug Fixes π
- fix: assets filename maybe not match a chunk by @SyMind in #6026
- fix:
Compiler
andCompilation
inLoaderContext
of a childCompiler should be updated by @h-a-n-a in #6034 - fix: disable import stmt opt in old tree shaking by @IWANABETHATGUY in #6037
- fix: do not concatenate css module by @IWANABETHATGUY in #6039
- fix: emit asset file with buffer can use in asset emitted hook correctly by @LingyuCoder in #6067
- fix: handle error of
cacheGroup.name()
by @h-a-n-a in #6081 - fix: ci typo error by @LingyuCoder in #6092
- fix: should add use-credentials into css-loading runtime correctly by @LingyuCoder in #6097
- fix: π add concatenation bailout reason by @IWANABETHATGUY in #6110
- fix: merge with global parser generator options by @ahabhgk in #6135
- fix: π use set queue instead of
VecDeq
by @IWANABETHATGUY in #6134 - fix: nested
unknown || truthy = unknown truthy
eval logical or by @ahabhgk in #6139 - fix:
Rule.enforce
should be applied touse
of function type by @h-a-n-a in #6112
Documentation Updates π
- docs: update some rspack legacy descriptions by @9aoy in #6030
- docs: add ignoreWarnings option by @9aoy in #6032
- docs: integrate Rsbuild plugins for website by @chenjiahan in #6043
- docs: remove deprecated html and node-polyfill plugin by @chenjiahan in #6044
- docs: improve api introduction by @SyMind in #6041
- docs: add rsfamily-design-resources by @chenjiahan in #6053
- docs: node api by @SyMind in #6052
- docs(storybook): update to use @modern-js/storybook by @fi3ework in #6123
- docs: use Rspress official plugin for RSS supports by @chenjiahan in #6126
- docs: add document for CssExtractRspackPlugin by @JSerFeng in #6147
- docs: enable new tree shaking by default by @LingyuCoder in #6158
Other Changes
- test(rspack): add test for ExportDefaultDecleration case with ProvidePlugin by @xc2 in #6024
- refactor: normal module factory after resolve hook by @ahabhgk in #6023
- refactor: split module_graph by @jerrykingxyz in #6004
- refactor: context module factory before resolve hook by @ahabhgk in #6027
- chore(deps): update crates by @renovate in #6035
- refactor: cmf after resolve hook by @ahabhgk in #6038
- chore(workflow): update PR template by @chenjiahan in #6045
- chore: add rspack-compat by @hardfist in #6050
- chore: remove integrate cases by @LingyuCoder in #6046
- refactor: nmf create module hook by @ahabhgk in #6047
- chore: migrate tree shaking rust test cases by @LingyuCoder in #6054
- refactor: nmf resolve for scheme hook by @ahabhgk in #6055
- chore: cargo build reuse cache by @jerrykingxyz in #6079
- chore(workflow): integrate cspell-ban-words by @chenjiahan in #6096
- chore: add warning notice about @rspack/test-tools by @hardfist in #6095
- chore: remove change logs because they are outdated and not useful by @Boshen in #6098
- chore(deps): update peter-evans/find-comment action to v3.1.0 by @renovate in #6103
- chore: remove unused dependencies from crates/rspack by @Boshen in #6099
- chore(deps): update crates by @renovate in #6102
- refactor: remove rspackFuture.disableApplyEntryLazily by @ahabhgk in #6100
- chore: release all platform for canary release by @hardfist in #6104
- chore: use .snap.txt for custom hightlight in editor by @LingyuCoder in #6106
- chore: git attributes snap by @LingyuCoder in #6108
- chore: migrate cases from crates/rspack to packages/rspack-test-tools by @LingyuCoder in #6111
- chore: fix diff case by @LingyuCoder in #6122
- test: make CopyPlugin.test faster and more stable by @xc2 in #6115
- chore: migrate swc-loader cases by @LingyuCoder in #6114
- chore: migrate plugin asset cases by @LingyuCoder in #6116
- chore: migrate plugin css cases by @LingyuCoder in #6117
- chore: migrate plugin html cases by @LingyuCoder in #6118
- chore: migrate plugin javascript cases by @LingyuCoder in #6119
- chore: migrate plugin wasm cases by @LingyuCoder in #6120
- chore: remove rspack testing dependency by @LingyuCoder in #6121
- refactor: migrate normal module hooks by @ahabhgk in #6127
- test: fix random ci failure by @xc2 in #6113
- chore: run format by @JSerFeng in #6131
- refactor: js plugin hooks by @ahabhgk in #6132
- chore: move hot next function from runner to runner factory by @LingyuCoder in #6140
- chore(rust/dep): update
sugar_path
to 1.2.0 by @hyf0 in #6143 - chore: port min...
v0.5.9
What's Changed
Highlights
- Fix incorrectly full reload when applying hot update #6021
- Support passing
Function
type to filename options:options.filename
,options.chunkFilename
, etc @branchseer in #5957
Performance Improvements β‘
Exciting New Features π
- feat: support filename function by @branchseer in #5957
- feat: support webpackChunkName comment for worker by @ahabhgk in #6019
Bug Fixes π
- fix: remove useless MutexModuleGraph by @jerrykingxyz in #5979
- fix(testng): use compiler.run by @LingyuCoder in #5984
- fix: cached source with raw source by @SyMind in #5996
- fix(rspack_plugin_html): align rspack_plugin_html inject option behavior with html-webpack-plugin by @nilptr in #5545
- fix: duplicate library plugin by @ahabhgk in #6010
- fix: missing define_variable for export declarations by @xc2 in #6012
- fix: rsbuild scss module mangle by @IWANABETHATGUY in #5992
- fix: Move @import to top of concatenated CSS output (#6000) by @woai3c in #6016
- fix: should generate correct context request with query by @LingyuCoder in #6018
- fix: stablize chunk id by @JSerFeng in #6021
Other Changes
- chore(deps): update crates by @renovate in #5973
- refactor: execute module hook by @ahabhgk in #5970
- refactor: runtime module hook by @ahabhgk in #5977
- refactor: build module hook by @ahabhgk in #5980
- refactor: still valid module hook by @ahabhgk in #5981
- refactor: succeed module hook by @ahabhgk in #5982
- refactor: chunk asset hook by @ahabhgk in #5983
- chore: remove rspack-html-plugin & rspack-plugin-node-polyfill by @hardfist in #5988
- chore: move website into rspack repo by @hardfist in #5991
- refactor: finish make and finish modules hook by @ahabhgk in #5990
- docs: fix the wrong sidebar after navigating by @Yukiniro in #5999
- refactor: after process assets and asset emitted hook by @ahabhgk in #5995
- docs: use Open Sans as the default font by @chenjiahan in #6006
- refactor: emit and after emit hook by @ahabhgk in #5997
- refactor: optimize modules and after optimize modules hook by @ahabhgk in #5998
- chore: update rolldown credits by @hardfist in #6014
- doc: add swc plugin usage by @hardfist in #6015
- refactor: optimize tree and optimize chunk modules hook by @ahabhgk in #6003
- chore: make format compatible with windows by @woai3c in #6022
New Contributors
- @branchseer made their first contribution in #5957
- @nilptr made their first contribution in #5545
- @Yukiniro made their first contribution in #5999
- @woai3c made their first contribution in #6016
Full Changelog: v0.5.8...v0.5.9