Releases: web-infra-dev/rspack
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
v0.5.8
What's Changed
Performance Improvements β‘
- perf(node-binding): lock-free compiler by @h-a-n-a in #5940
- perf(node-binding): reduce
JsCallback
lock contentions by @h-a-n-a in #5945
Exciting New Features π
- feat: support
generator.dataUrl
as function by @luhc228 in #5841 - feat: support modify resource in after resolve hook by @LingyuCoder in #5924
- feat(create-rspack): support cancel operation by @lalalazero in #4968
- feat: support append fn by @SyMind in #5959
Bug Fixes π
- fix(typing): fix partial ts-expect-error in packages/rspack by @gaoachao in #5909
- fix: ci failed caused by unresolved conflict by @ahabhgk in #5936
- fix: module connection issuse by @IWANABETHATGUY in #5930
- fix: nmf before resolve bench regression by @ahabhgk in #5941
- fix: export star missing module panic by @ahabhgk in #5953
- fix: overflow by @JiangWeixian in #5951
- fix: should call compile hook by @ahabhgk in #5958
- fix: plugin import camel case with number by @ahabhgk in #5962
Other Changes
- refactor: set compilation.module_graph as private by @jerrykingxyz in #5916
- refactor: support new tsfn (stage 1) by @h-a-n-a in #5885
- chore: bump oxc-resolver by @Boshen in #5883
- refactor: migrate to hook macro by @ahabhgk in #5922
- refactor: support new tsfn (stage 2) by @h-a-n-a in #5900
- chore(core): bump oxc_resolver by @Boshen in #5926
- chore(deps): update crates by @renovate in #5925
- refactor: connection use global auto-increment index by @jerrykingxyz in #5927
- refactor: migrate nmf before resolve to new hook by @ahabhgk in #5931
- refactor: support new tsfn (stage 3) by @h-a-n-a in #5932
- chore: fix lint-staged prettier by @ahabhgk in #5935
- refactor: support new tsfn (stage 4) by @h-a-n-a in #5934
- chore: run tree shaking by new test runner by @LingyuCoder in #5937
- chore(testng): run compiler cases by new runner by @LingyuCoder in #5942
- chore: cleanup legacy threadsafe function by @h-a-n-a in #5946
- refactor(core): set module_graph.* as private attribute by @jerrykingxyz in #5944
- chore(testng): run defaults cases by new runner by @LingyuCoder in #5947
- chore(testng): run stats api cases by new runner by @LingyuCoder in #5948
- refactor: support js loader plugin by @h-a-n-a in #5939
- chore: update CODEOWNERS by @h-a-n-a in #5952
- refactor: staged should emit hook by @ahabhgk in #5950
- chore: remove unused Rust dependencies by @Boshen in #5954
- refactor(node-binding): support
CompilerStateGuard
by @h-a-n-a in #5956 - refactor: this compilation hook by @ahabhgk in #5960
- chore: shorten SAFETY comments by @h-a-n-a in #5963
New Contributors
- @gaoachao made their first contribution in #5909
- @JiangWeixian made their first contribution in #5951
- @lalalazero made their first contribution in #4968
Full Changelog: v0.5.7...v0.5.8
v0.5.7
What's Changed
Highlights
Support experimental SWC wasm plugins for builtin:swc-loader
Aligned wasm plugin architecture with JavaScript swc-loader
.
Check out the detail at swc plugins.
{
loader: "builtin:swc-loader",
options: {
jsc: {
experimental: {
plugins: [
[
"@swc/plugin-remove-console",
{
exclude: ["error"],
},
],
],
},
},
},
};
Great work done by @dm33tri π.
Exciting New Features π
- feat: side effects bailout out stats by @IWANABETHATGUY in #5803
- feat: support stage for processAssets by @ahabhgk in #5861
- feat: support
module.noParse
by @xc2 in #5829 - feat: entrypoint.getRuntimeChunk by @ahabhgk in #5914
Bug Fixes π
- fix: webpackMode eager for dynamic import by @ahabhgk in #5850
- fix: panic pass query to loader without resource with resource query by @SyMind in #5832
- fix(wasm): add fallback for MIME mismatch error in async wasm loading by @magic-akari in #5491
- fix: proc macro should keep generics by @JSerFeng in #5860
- fix(rspack_loader_swc): enable SWC plugins by @dm33tri in #5808
- fix: π bailout stats location by @IWANABETHATGUY in #5864
- fix: fix some "changes didn't emit a rebuild" issues by @xc2 in #5837
- fix: π should not mangle css module identifier by @IWANABETHATGUY in #5876
- fix: export default alias by @IWANABETHATGUY in #5875
- fix: use uniqueName in css loading by @LingyuCoder in #5870
- fix: export string name in harmony module by @LingyuCoder in #5888
- fix: css loading runtime order by @ahabhgk in #5896
- fix: context request position change error by @LingyuCoder in #5893
- fix: empty resource query and fragment by @ahabhgk in #5899
- fix: alias should have order by @LingyuCoder in #5901
Other Changes
- chore: disable jest transform by @h-a-n-a in #5854
- chore: disable webpack-test jest transform by @h-a-n-a in #5855
- chore: align webpack type by @SyMind in #5857
- chore: x script support force build by @h-a-n-a in #5858
- chore(deps): update napi to v2.16.0 by @renovate in #5811
- revert: "fix(rspack_loader_swc): enable SWC plugins" by @h-a-n-a in #5865
- chore(deps): update crates by @renovate in #5862
- chore: support test release build in CI and enable windows test in CI by @jerrykingxyz in #5880
- chore: remove duplicate "uses" by @jerrykingxyz in #5881
- chore: test toolkit by @LingyuCoder in #5755
- chore: fix some comments by @hishope in #5882
- refactor(core): move
Compilation::update_module_graph
to its own file by @Boshen in #5884 - revert: "revert: "fix(rspack_loader_swc): enable SWC plugins"" by @h-a-n-a in #5866
- test: make sure import not run after it by @LingyuCoder in #5889
- refactor: move module_graph_module to module_graph folder by @jerrykingxyz in #5886
- test: run async node library exports may cause error in ci by @LingyuCoder in #5890
- refactor(core): add a
UpdateModuleGraph
struct withcutout
andrepair
steps by @Boshen in #5891 - chore: print eco ci result in commit by @SyMind in #5895
- chore(testng): should not share runner between multiple compiler when run same file by @LingyuCoder in #5898
- refactor(core): move compiler/queue.rs to compiler/make/queue.rs by @Boshen in #5892
- refactor: query js taps from stage range by @ahabhgk in #5903
New Contributors
Full Changelog: v0.5.6...v0.5.7
v0.5.6
What's Changed
Highlight
Improve HMR performance around 60%
Introducing sourcemap caching has improved the compilation speed of HMR (Hot Module Replacement), typically resulting in an improvement of around 60%.
Performance Improvements β‘
- perf: add cache for source map by @SyMind in #5709
- perf(deps): remove terminal-link package by @chenjiahan in #5819
- perf: let CachedSource work right by @SyMind in #5830
Exciting New Features π
- feat: call parser hooks with tag by @bvanjoi in #5784
- feat: polish diagnostic suggestion wordings for module resolution by @h-a-n-a in #5790
- feat: support stage for hooks by @ahabhgk in #5714
- feat: run ecosystem ci as merged into main by @SyMind in #5846
- feat: support compilation.renameAsset by @LingyuCoder in #5849
Bug Fixes π
- fix: fix
this
in ctor default param transform intoundefined
by @NotEvenANeko in #5787 - fix: π fix 5782 by @IWANABETHATGUY in #5793
- fix: skip release rspack-test-tools and webpack-cli-test by @jerrykingxyz in #5809
- fix: release @rspack/test-tools by @jerrykingxyz in #5810
- fix: disable hooks should respect interceptor by @ahabhgk in #5812
- fix(parser): should walk parameters in class methods by @JSerFeng in #5813
- fix: should not contain duplicate initFragments for namespace_cache by @JSerFeng in #5816
- fix: add context module afterResolve hook by @JSerFeng in #5746
- fix: @rspack/dev-server Cannot find module by @noshower in #5826
- fix: let filename can receive null by @SyMind in #5831
- fix: should not generate minify plugin based on devtool by @JSerFeng in #5840
- fix: jest disable transform node_module by @jerrykingxyz in #5848
- fix: cjs interop by @IWANABETHATGUY in #5828
- fix: require as expression by @ahabhgk in #5844
Other Changes
- chore: init webpack-cli tests by @h-a-n-a in #5785
- chore: align multi compiler test !windows by @SyMind in #5777
- chore: align stats test by @h-a-n-a in #5789
- chore: js hash test by @h-a-n-a in #5796
- chore: align MultiStats tests by @h-a-n-a in #5798
- chore: align default test runner by @h-a-n-a in #5799
- chore: align test cases runner by @h-a-n-a in #5747
- chore: renovate split napi upgrades by @Boshen in #5806
- chore: shaking duplicate test cases by @SyMind in #5802
- chore: migrate miscellaneous test runners and remove swc-jest by @h-a-n-a in #5801
- chore(deps): update crates by @renovate in #5791
- refactor(code-splitting): using raw dependencies order by @JSerFeng in #5807
- refactor: move runtimeCases to configCases by @JSerFeng in #5814
- chore: align jest config by @h-a-n-a in #5815
- chore(deps): update npm dev dependencies by @renovate in #5792
- Revert "chore(deps): update npm dev dependencies" by @Boshen in #5817
- chore: remove source-map-support by @hardfist in #5823
- chore: disable jest cache by @h-a-n-a in #5825
- chore: disable jest sourcemap support by @hardfist in #5827
- chore: set pnpm store-dir to global store-dir + version by @jerrykingxyz in #5843
- chore: remove unused local variables by @chenjiahan in #5820
New Contributors
- @NotEvenANeko made their first contribution in #5787
- @noshower made their first contribution in #5826
Full Changelog: v0.5.5...v0.5.6