v7.11.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7110
v1.7.0-beta.0
The latest version of SWC enhances the compatibility of Wasm plugins. This means future upgrades of Rspack and SWC will almost no longer break SWC Wasm plugins. Additionally, the SWC upgrade brings a 10% performance improvement to the parser.
Since Rspack v1.5 has stabilized Lazy Compilation, we are now enabling it by default for dynamic imports cases when the target is web.
export default defineConfig({
lazyCompilation: {
imports: true,
},
});
In the previous releases, the experimental features experiments.lazyBarrel, experiments.inlineConst, experiments.inlineEnum were introduced to enable cross-module inlining optimizations for constants. These optimizations improve minifiers' ability to perform precise static analysis, eliminate unused code branches, and further reduce bundle size.
After thorough validation, we are now promoting these features from experimental to stable.
export default {
experiments: {
- inlineConst: true,
- inlineEnum: true,
- lazyBarrel: true,
- typeReexportsPresence: true,
},
module: {
parser: {
javascript: {
- inlineConst: true,
typeReexportsPresence: true,
},
},
},
optimization: {
+ inlineExports: true,
},
}
- perf(rstest): minor performance optimization by @fi3ework in https://github.com/web-infra-dev/rspack/pull/12469
- feat: support dynamic URL with new URL() context mode by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12389
- feat: stabilize lazy compilation middleware by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12429
- feat: add support for type: 'text' in asset modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12457
- feat: enable lazy compilation for imports by defaults by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12419
- feat(deps)!: bump
swc_corefrom 46.0.3 to 50.2.3 andswc_experimentalby @CPunisher in https://github.com/web-infra-dev/rspack/pull/12445 - feat: implement UniversalCompileAsyncWasmPlugin for universal chunk loading by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12471
- feat: stabilize inline exports by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12475
- feat: stabilize SubresourceIntegrityPlugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12483
- fix: add test/include/exclude options to EvalSourceMapDevToolPlugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12392
- fix: relative-resource-path should handle output.filename by @SyMind in https://github.com/web-infra-dev/rspack/pull/12398
- fix: improve RuntimeGlobals type definition accuracy by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12403
- fix: handle empty resource path in context module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12407
- fix: align webpack behavior of removing empty entry chunk by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12414
- fix: make splitChunks more stable by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12410
- fix: should use exported name of the imported module by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12423
- fix: strip ANSI codes from ignoreWarnings messages by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12435
- fix: concatenate module should use importer's 'strict' for interop by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12446
- fix: wasm plugin panic when use persistent cache by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12455
- fix: add Set methods to compilation dependencies by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12459
- fix(diagnostic): avoid emitting dim-only indent lines by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12461
- fix: handle symlinks correctly in rmrf function by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12456
- fix: add case-sensitive check for emit assets by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12462
- fix: use RspackHash for HTML plugin content hash calculation by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12465
- fix: re-validate HttpUriPlugin redirects against allowedUris and enforce http(s) and max redirects by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12463
- fix: extra runtime global bits are lost after js hook by @nilptr in https://github.com/web-infra-dev/rspack/pull/12275
- fix: set lazyCompilation default to web only by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12473
- fix: handle ignored asset modules with proper data URL export by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12468
- fix: reexports in arrow-only environments without const by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12484
- fix: respect matchResource when generate nameForCondition by @Austaras in https://github.com/web-infra-dev/rspack/pull/12449
- refactor: move cacheable macros to rspack_cacheable_macros by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12393
- refactor: use atomic_refcell for async_module_artifact by @hardfist in https://github.com/web-infra-dev/rspack/pull/12408
- refactor: use swc_experimental on concatenated module by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12369
- refactor: change dependencies_diagnostics_artifact to use atomic_refcell by @hardfist in https://github.com/web-infra-dev/rspack/pull/12415
- refactor: replace
SourceFilewith&strand replaceArc<SourceMap>withRopein rspack_plugin_javascript by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12404 - refactor: extract common utility functions to rspack_util by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12447
- refactor: remove linked_hash_set dependency by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12451
- docs: add docs about env to control working threads limit by @hardfist in https://github.com/web-infra-dev/rspack/pull/12383
- docs: improve AGENTS.md and add comprehensive development documentation by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12420
- docs: upgrade rspress@2.0.0-rc.2 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/12426
- docs: update FAQ to clarify Rspack's support for Wasm and RSC by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12432
- docs: enhance
ignoreWarningsoption with detailed examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12436 - docs: add deprecated options documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12448
- docs: refactor
module.rulesoptions into a dedicated page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12452 - docs: improve
resolve.byDependencydescription and examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12458 - docs: fix rules[].use example by @henryqdineen in https://github.com/web-infra-dev/rspack/pull/12466
- docs: add descriptions for built-in plugins by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12485
- chore: release v1.6.7 by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12391
- test: remove webpack consistency check filters from statsOutputCases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12394
- test: enable previously filtered test cases and update expected outputs by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12396
- chore(ci): run Mac CI test on github hosted runner by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12397
- test: update stats snapshot by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12401
- test: enable passing normalCases tests and document failures by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12409
- test: enable passing configCases tests and document failures by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12412
- test: try to fix flaky test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12402
- chore(ci): fix artifact discovery logic in Rsdoctor action by @yifancong in https://github.com/web-infra-dev/rspack/pull/12405
- chore: bump
swc_experimentalto fix parsing utf8 in template by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12431 - chore(ci): skip diff action for doc-only changes by @yifancong in https://github.com/web-infra-dev/rspack/pull/12437
- chore(deps): update dependency cspell to ^9.4.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12439
- chore(deps): update dependency memfs to v4.51.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12440
- chore(deps): update dependency tsx to ^4.21.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12442
- chore(deps): update dependency prettier to v3.7.4 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12441
- chore: skip diff CI for doc-only changes by @yifancong in https://github.com/web-infra-dev/rspack/pull/12438
- chore: enable noUnusedParameters option in tsconfig by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12464
- chore(deps): update SWC to v48.0.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12479
- chore(deps): update dependency @shikijs/transformers to ^3.20.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12480
- chore(ci): support collapsing the CI comment by @yifancong in https://github.com/web-infra-dev/rspack/pull/12472
- chore(deps): update github-actions by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12477
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.7...v1.7.0-beta.0
v16.1.0-canary.31
- [turbopack] update warning message in the bundle analyzer: #87255
- chore: update rspack 1.6.5: #86853
- Update font data: #87259
- bundle-analyzer: make running the web server default: #87258
- [turbopack] Break ties using a counter instead of node index: #87252
- bundle-analyzer: use and multiselect for top bar: #87254
Huge thanks to @lukesandberg, @SyMind, @wbinnssmith, and @vercel-release-bot for helping!
v1.6.8
- fix: reexports in arrow-only environments without const by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12484
- fix: re-validate HttpUriPlugin redirects against allowedUris and enforce http(s) and max redirects by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12463
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.7...v1.6.8