v2.0.0-alpha.0
This is an early preview release intended for testing only. It introduces a number of breaking changes that are not yet final.
See https://github.com/web-infra-dev/rspack/discussions/9270 for all breaking changes.
- feat!: remove
experiments.SubResourceIntegrityPluginby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12642 - feat!: remove
experiments.rspackFutureand movebundlerInfotooutputby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12654 - feat!: remove
experiments.parallelLoaderby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12658 - feat!: remove
profileandstats.profileby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12662 - feat!: enable
verbatimModuleSyntaxofbuiltin:swc-loaderby default by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12668 - feat!: remove
rspack.experiments.lazyCompilationMiddlewareby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12736 - feat!: remove deprecated WarnCaseSensitiveModulesPlugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12737
- feat!: remove deprecated draft option from LightningCSS minimizer by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12740
- feat!: remove deprecated cssHeadDataCompression option by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12741
- feat!: remove deprecated output library fields by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12745
- feat!: make @rspack/dev-server an optional peer dependency by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12750
- feat!: use rspackChunk as default value of chunkLoadingGlobal by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12779
- feat!: disable requireAsExpression by default by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12786
- feat!: use "rspack" as default trustedTypes policy name by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12799
- feat!: remove sri option of HtmlRspackPlugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12651
- feat!: remove
output.charsetby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12660 - feat!: disable
.swcrcreading in JavaScript compiler by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12667 - feat!: remove deprecated getHooks method from plugins by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12738
- feat!: Rspack off modules and assets in normal stats by @SyMind in https://github.com/web-infra-dev/rspack/pull/12701
- feat!: default loader/plugin target by rspack target by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12752
- feat!: use rspackHotUpdate as default hotUpdateGlobal by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12774
- feat!: enable css by default by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12744
- feat!: default targets for loader/plugin derived by rspack target, part 2 by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12780
- feat!: do not expose EsmLibraryPlugin to user directly, use modern-module instead by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12792
- refactor!: drop support for Node 18 by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12739
- refactor!: drop CommonJS build and transition to pure ESM package by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12733
- refactor!: use EsmLibraryPlugin for modern-module library type by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12712
- refactor!: move incremental option from experiments to top-level config by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12793
- fix: failed to resolve 'browserslist-load-config' module by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12767
- fix: correct watchpack require path by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12771
- fix(browser): fix
@rspack/browserfailure after pure esm transformation by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12781 - fix(mf): async startup e2e test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12808
- docs: remove deprecated parallelCodeSplitting by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12751
- docs: add missing documentation for JavascriptParserOptions by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12748
- docs: update bundlerInfo version and formatting by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12772
- docs: fix typo in CSS docs by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12784
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.7.3...v2.0.0-alpha.0
v1.7.3
- feat: support portable cache and disable by default by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12680
- fix(browser): update worker format and add e2e test by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12747
- fix: sort css by sourceorder, esm import comes first by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12778
- refactor: move pass into separate folder and driven by run_passes by @hardfist in https://github.com/web-infra-dev/rspack/pull/12735
- refactor(lazy-compilation): use POST request to transfer ids of active modules by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12678
- refactor: move logger into pass and reorg some passes by @hardfist in https://github.com/web-infra-dev/rspack/pull/12742
- refactor: use newtype for alias artifact by @hardfist in https://github.com/web-infra-dev/rspack/pull/12754
- refactor: move all artifacts together by @hardfist in https://github.com/web-infra-dev/rspack/pull/12755
- refactor: use compilation readonly ref in codegen optimization hook by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12743
- refactor: remove old cache by @hardfist in https://github.com/web-infra-dev/rspack/pull/12777
- chore: release 1.7.2 by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12710
- chore(deps): update dependency @rspack/plugin-react-refresh to ^1.6.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12718
- chore(deps): update dependency @shikijs/transformers to ^3.21.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12719
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12716
- test: skip recover-from-error/delete-file in watchCases by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12726
- test: use Rstest projects to define tests by @9aoy in https://github.com/web-infra-dev/rspack/pull/12729
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12717
- chore(lint): bump @rslint/core to 0.2.0 and enable default-param-last rule by @fansenze in https://github.com/web-infra-dev/rspack/pull/12746
- test: support filter test by absolute path by @9aoy in https://github.com/web-infra-dev/rspack/pull/12749
- chore: bump
swc_corefrom 54 to 55 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12758 - chore: limit threads for codspeed benchmark by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12763
- chore(deps): update dependency cspell to ^9.6.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12768
- chore(deps): update dependency emnapi to ^1.8.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12769
- chore(deps): update dependency memfs to v4.53.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12770
- @fansenze made their first contribution in https://github.com/web-infra-dev/rspack/pull/12746
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.7.2...v1.7.3
v1.7.2
- feat: add constructor name for JS runtime modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12673
- feat: rspack_cacheable context expose project root by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12685
- feat: rspack_cacheable add portable path & portable string by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12688
- feat: add
requireAliasoption to control require variable renaming by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12686 - feat: impl
sync_traceforloggertracing layer by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12687 - feat: add warning when requireAlias is disabled by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12700
- feat: use rspack-vue-loader to support Vue hot update by @9aoy in https://github.com/web-infra-dev/rspack/pull/12698
- feat(rstest): add
preserveNewUrloption to keep new URL untouched by @fi3ework in https://github.com/web-infra-dev/rspack/pull/12632
- fix: report error when access module_graph in loader by @hardfist in https://github.com/web-infra-dev/rspack/pull/12639
- fix(lint): enable @typescript-eslint/await-thenable rule by @tt-a1i in https://github.com/web-infra-dev/rspack/pull/12644
- fix(lint): enable @typescript-eslint/require-await rule by @tt-a1i in https://github.com/web-infra-dev/rspack/pull/12664
- fix(lint): enable @typescript-eslint/return-await rule by @tt-a1i in https://github.com/web-infra-dev/rspack/pull/12665
- fix: incremental rebuild no code generation entry panic by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12643
- fix: inlined export invalid syntax comment by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12681
- fix(test): flaky test due to calling toJSON while hot updating by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12694
- fix:
environments.importMetaDirnameAndFilenamenot work by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12708 - fix: dynamic entry panic when disable build cache by @SyMind in https://github.com/web-infra-dev/rspack/pull/12696
- fix(context-replacement): only apply changes when regex matches by @agneym in https://github.com/web-infra-dev/rspack/pull/12657
- fix(mf): handle missing chunk gracefully and improve expose chunk name logic by @2heal1 in https://github.com/web-infra-dev/rspack/pull/12709
- fix(type): runtimeModule.source by @9aoy in https://github.com/web-infra-dev/rspack/pull/12713
- refactor: afterCodeGeneration hook use read only compilation ref by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12655
- refactor: make compilation readonly for runtimeModule hook by @hardfist in https://github.com/web-infra-dev/rspack/pull/12670
- refactor: unify artifact clear logic by @hardfist in https://github.com/web-infra-dev/rspack/pull/12677
- refactor: use DerfOpt's take/replace assist artifact mutation by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12659
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12647
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12646
- chore: run ci/eco-ci/eco-benchmark on v2 branch by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12650
- chore(deps): update github-actions by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12645
- revert: "feat: add warning when requireAlias is disabled" by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12702
- @tt-a1i made their first contribution in https://github.com/web-infra-dev/rspack/pull/12644
- @agneym made their first contribution in https://github.com/web-infra-dev/rspack/pull/12657
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.7.1...v1.7.2
v1.7.1
- feat(module-federation): enhance manifest generation and shared module handling by @2heal1 in https://github.com/web-infra-dev/rspack/pull/12399
- fix: make after optimize modules hook immutable by @hardfist in https://github.com/web-infra-dev/rspack/pull/12589
- fix: should export rspack function from
compiler.rspackby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12636
- refactor: make compilation readonly for module ids hook by @hardfist in https://github.com/web-infra-dev/rspack/pull/12588
- refactor: make compilation readonly for optimize tree hooks by @hardfist in https://github.com/web-infra-dev/rspack/pull/12597
- refactor: use readonly compilation reference for after seal hook by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12602
- refactor: remove option in dependency_by_id by @hardfist in https://github.com/web-infra-dev/rspack/pull/12569
- refactor: don't return option for dependency_id_to_parents by @hardfist in https://github.com/web-infra-dev/rspack/pull/12609
- refactor: make compilation readonly for chunk_ids hooks by @hardfist in https://github.com/web-infra-dev/rspack/pull/12608
- refactor: remove option in module_graph_module_by_identifier_mut by @hardfist in https://github.com/web-infra-dev/rspack/pull/12610
- refactor: use read only compilation reference in after process assets hook by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12615
- refactor: move try_dependency_by_id api in internal folder by @hardfist in https://github.com/web-infra-dev/rspack/pull/12611
- refactor: remove MaybeDynamicTargetExportInfo and simplify get_target by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12601
- refactor: introduce
ExprRefto avoid cloneExprast nodes by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12622 - refactor: remove unused SWC helpers by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12614
- refactor: replace UsageCallback closure with InnerGraphUsageOperation enum by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12619
- docs: add 1.7.0 release blog by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12571
- docs: update links from rspack-contrib to rstackjs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12603
- docs: fix benchmark repo links by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12607
- docs: add link to pure annotation specification by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12624
- docs: SRI plugin of old rspack versions by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12637
- chore: release v1.7.0 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12595
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12594
- ci: only download bindings artifacts during release by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12604
- chore(deps): update rust crate indicatif to 0.18.3 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12539
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12593
- chore: use Node 24 for WASM tests by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12613
- chore: limit workers for loader parallel tests by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12620
- chore(deps): update github-actions by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12592
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.7.0...v1.7.1
v1.7.0
🎉 See Announcing Rspack 1.7 for more details.
- perf(rstest): minor performance optimization by @fi3ework in https://github.com/web-infra-dev/rspack/pull/12469
- perf: update module graph overlay map by @hardfist in https://github.com/web-infra-dev/rspack/pull/12560
- 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
- feat: improve deprecation warning messages by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12524
- feat: add rspack_tools to compare .cache from different os by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12499
- feat: improve warning messages for mocked node values by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12549
- feat: add bytes support for asset modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12548
- feat: mangle exports of css modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12563
- feat: default lazy compilation from cli and for web app only by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12580
- 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
- fix: exclude hidden dir from snapshot managedPaths default value by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12486
- fix: relative resource path in source maps on Windows by @SyMind in https://github.com/web-infra-dev/rspack/pull/12493
- fix: parsing arrow function IIFE by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12490
- fix: compile-time evaluation of optional chaining by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12494
- fix: SRI plugin runtime module check for Module Federation by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12519
- fix: use default runtime to export default interop and keep empty import for externals by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12530
- fix: optimize CSS runtime requirements logic by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12529
- fix: include import attributes in context module identifier by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12551
- fix: remove allowAsyncCycles option and detect all dependencies of modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12552
- fix: generate CSS file for universal target by @inottn in https://github.com/web-infra-dev/rspack/pull/12570
- fix: compilation js object memory leak by @SyMind in https://github.com/web-infra-dev/rspack/pull/12579
- fix(esm_lib_plugin): should set original module for get_binding by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12584
- fix(cli): apply default lazy compilation value based on user config by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12583
- fix: shebang should always in entry chunk by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12585
- fix: remove error log while lazy compilation can't find module to invildate by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12566
- 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
- refactor(esm-lib-plugin): manually resolve exports that re star-exported, and improve NodeTargetPlugin for module output by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12476
- refactor: extract case-sensitive check to plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12532
- refactor: check neutral platform by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12534
- refactor: move collectTypescriptInfo out of rspackExperiments by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12535
- refactor: refactor module graph by @hardfist in https://github.com/web-infra-dev/rspack/pull/12474
- refactor: merge rspack_cacheable SerializeError and DeserializeError by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12556
- refactor: remove option for modules by @hardfist in https://github.com/web-infra-dev/rspack/pull/12567
- refactor: remove all option in ModuleGraphData by @hardfist in https://github.com/web-infra-dev/rspack/pull/12568
- refactor: remove get_make_module_graph_mut api by @hardfist in https://github.com/web-infra-dev/rspack/pull/12575
- refactor: refine exports info for CJS and ESM interop by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12577
- refactor: remove redirect_to in exports info by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12581
- refactor: use defer_options for build_module_artifact by @hardfist in https://github.com/web-infra-dev/rspack/pull/12578
- refactor: DerefOpiton default to Some(T) when T impl Default trait by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12406
- refactor: make &compilation for optimization_dependencies by @hardfist in https://github.com/web-infra-dev/rspack/pull/12576
- refactor: make compilation readonly for optimize_modules phase by @hardfist in https://github.com/web-infra-dev/rspack/pull/12586
- refactor: improve exports info by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12587
- 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
- docs: add test/include/exclude options for eval source map devtool by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12495
- docs: use Rspress's default table styles by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12496
- docs: remove unused code, correct the usage of Link and Table. by @SoonIter in https://github.com/web-infra-dev/rspack/pull/12498
- docs: enhance
output.asyncChunksdocumentation and examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12500 - docs: stablize inline exports configurations by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12504
- docs: format markdown files by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12507
- docs: mention browserslist limitations in target configuration by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12515
- docs: correct markdown link in infrastructure logging by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12525
- docs: remove obsolete comments from config examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12526
- docs: add redirect config for
CaseSensitivePluginby @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12550 - docs: improve node configurations by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12547
- docs: correct optimization.realContentHash type by @vsn4ik in https://github.com/web-infra-dev/rspack/pull/12562
- docs: fix childAssets typo in ChunkGroup object by @henryqdineen in https://github.com/web-infra-dev/rspack/pull/12565
- 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
- chore: release v1.7.0-beta.0 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12487
- chore(ci): update windows zstd version by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12489
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12478
- chore(deps): bump Rslib v0.18.5 by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12502
- chore(ci): collapse the diff action detail comments by @yifancong in https://github.com/web-infra-dev/rspack/pull/12503
- chore(deps): update dependency commander to v14 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12510
- chore(deps): update pnpm to v10.26.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12509
- chore(deps): update dependency @swc/plugin-remove-console to ^12.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12508
- chore(deps): update dependency jest-diff to v30 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12512
- chore(deps): update dependency pretty-format to v30 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12514
- ci: check formats for doc-only changes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12511
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12152
- test: add retry configuration for CI to reduce flakes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12517
- test: enable previously skipped stats output tests by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12520
- chore: bump swc_core from 50.2.3 to 52.0.0 and swc_experimental from 0.3.3 to 0.3.5 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12518
- chore: restructure examples and add basic React example by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12522
- chore: remove logic of parallelCodeSplitting by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12424
- test: cleanup obsolete test cases and update test configurations by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12523
- chore: allow prettier to format test tools and e2e files by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12528
- chore: release v1.7.0 beta.1 by @SyMind in https://github.com/web-infra-dev/rspack/pull/12533
- chore(deps): update dependency @module-federation/runtime-tools to v0.22.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12536
- chore(deps): update dependency markdown-to-jsx to v9 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12540
- chore(deps): update github-actions by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12541
- chore(deps): update pnpm to v10.26.2 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12544
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12543
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12542
- chore(deps): update dependency @rslib/core to v0.18.6 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12553
- chore: unify prettier config format by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12557
- chore: ignore style changes in git blame by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12561
- test: cleanup diff comments by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12564
- chore(vscode): set defaultFormatter to prettier by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12574
- chore(deps): bump Rslib v0.19.0 by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12573
- chore: bump swc_core from 52.0.0 to 54.0.0 and swc_experimental from 0.3.5 to 0.4.0 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12582
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.8...v1.7.0
v1.7.0-beta.1
- feat: improve deprecation warning messages by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12524
- feat: add rspack_tools to compare .cache from different os by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12499
- fix: exclude hidden dir from snapshot managedPaths default value by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12486
- fix: relative resource path in source maps on Windows by @SyMind in https://github.com/web-infra-dev/rspack/pull/12493
- fix: parsing arrow function IIFE by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12490
- fix: compile-time evaluation of optional chaining by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12494
- fix: SRI plugin runtime module check for Module Federation by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12519
- fix: use default runtime to export default interop and keep empty import for externals by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12530
- refactor(esm-lib-plugin): manually resolve exports that re star-exported, and improve NodeTargetPlugin for module output by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12476
- docs: add test/include/exclude options for eval source map devtool by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12495
- docs: use Rspress's default table styles by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12496
- docs: remove unused code, correct the usage of Link and Table. by @SoonIter in https://github.com/web-infra-dev/rspack/pull/12498
- docs: enhance
output.asyncChunksdocumentation and examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12500 - docs: stablize inline exports configurations by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12504
- docs: format markdown files by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12507
- docs: mention browserslist limitations in target configuration by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12515
- docs: correct markdown link in infrastructure logging by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12525
- docs: remove obsolete comments from config examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12526
- chore: release v1.7.0-beta.0 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12487
- chore(ci): update windows zstd version by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12489
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12478
- chore(deps): bump Rslib v0.18.5 by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12502
- chore(ci): collapse the diff action detail comments by @yifancong in https://github.com/web-infra-dev/rspack/pull/12503
- chore(deps): update dependency commander to v14 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12510
- chore(deps): update pnpm to v10.26.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12509
- chore(deps): update dependency @swc/plugin-remove-console to ^12.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12508
- chore(deps): update dependency jest-diff to v30 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12512
- chore(deps): update dependency pretty-format to v30 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12514
- ci: check formats for doc-only changes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12511
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12152
- test: add retry configuration for CI to reduce flakes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12517
- test: enable previously skipped stats output tests by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12520
- chore: bump swc_core from 50.2.3 to 52.0.0 and swc_experimental from 0.3.3 to 0.3.5 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12518
- chore: restructure examples and add basic React example by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12522
- chore: remove logic of parallelCodeSplitting by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12424
- test: cleanup obsolete test cases and update test configurations by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12523
- chore: allow prettier to format test tools and e2e files by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12528
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.7.0-beta.0...v1.7.0-beta.1
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
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
v1.6.7
Rspack now supports the import.meta.filename, import.meta.dirname, and import.meta.resolve meta properties in ESM modules. These properties provide a standardized way to access file and directory paths in ES modules, similar to the CommonJS __filename and __dirname variables:
// Get the absolute path of the current module file
console.log(import.meta.filename);
// e.g., "/path/to/project/src/index.js"
// Get the directory path of the current module
console.log(import.meta.dirname);
// e.g., "/path/to/project/src"
// Resolve a module specifier to an absolute URL
const resolvedPath = import.meta.resolve('./utils.js');
Thanks to @magic-akari for this contribution!
- feat: update resolver error messages to use colored output by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12348
- feat: Support
import.meta.filename/dirname/resolveby @magic-akari in https://github.com/web-infra-dev/rspack/pull/12317 - feat: support
[relative-resource-path]in moduleFilenameTemplate by @SyMind in https://github.com/web-infra-dev/rspack/pull/12370
- fix(diagnostic): dim gutter and loader info for better visual hierarchy by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12341
- fix: avoid conflict for inlined const identifier by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12347
- fix(rstest): dedicated to hoist @rstest/core declaration by @fi3ework in https://github.com/web-infra-dev/rspack/pull/12302
- fix: don't use sync fs api by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12353
- fix: should use sourceOrder to sort module outgoing in buildChunkGraph by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12351
- fix(rstest): always hoist @rstest/core init fragment by @fi3ework in https://github.com/web-infra-dev/rspack/pull/12363
- fix: extracted comments should be behind the shebang by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12380
- fix: persistent cache save lazy barrel affected modules by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12384
- fix: prevent URLPlugin from parsing new URL(import.meta.url) by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12386
- fix: typo in preload runtime of CssExtractPlugin by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12387
- refactor: rename module arguments to rspack specific by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12350
- refactor: cache test case support NEXT_MOVE_DIR_START by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12359
- refactor: side effect optimize artifacts to deref option by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12334
- refactor: render runtime module identifier by runtime template by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12360
- refactor: recalculate all chunk ids with cache by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12374
- refactor: render javascript runtime globals according to compiler options by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12371
- refactor: optimize runtime multiple line string literal by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12381
- refactor: support
.rspack[...]syntax and rebrand CSS extract plugin internals by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12385
- chore(workflow): run diff CI on push events by @yifancong in https://github.com/web-infra-dev/rspack/pull/12346
- chore: release v1.6.6 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12345
- chore: fix taplo format script by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12349
- ci: remove legacy ecosystem CI yaml by @fi3ework in https://github.com/web-infra-dev/rspack/pull/12352
- chore(deps): update dependency @shikijs/transformers to ^3.18.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12357
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12355
- chore(deps): bump Rslib v0.18.3 by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12362
- chore(deps): update dependency prebundle to ^1.6.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12327
- chore(deps): update pnpm to v10.24.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12328
- chore(deps): update dependency @playwright/test to v1.57.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12356
- chore(deps): pin action dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12354
- chore(deps): update dependency react to ^19.2.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12364
- chore: add napi::tokio_runtime::block_on by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12358
- chore(ci): move rust-cache Action to rspack-contrib by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12368
- test: split Config, Watch and NativeWatcher tests into 3 parts for better parallelization by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12379
- test: bump Rstest to v0.7.1 by @9aoy in https://github.com/web-infra-dev/rspack/pull/12390
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.6...v1.6.7
v1.6.6
Rspack now generates a more compact module factory format that trims the wrapper function. Benchmarks show this reduces bundle size by about 1% before gzip.
- perf: disable
output.pathinfoby default by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12306
- feat: support shorthand function for module factory to reduce bundle size by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12226
- feat(loader-runner): Allow limiting worker pool size for parallel loaders by @Pablinho in https://github.com/web-infra-dev/rspack/pull/12277
- feat: do not render js output if ref module is only css source type by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12329
- feat: supports async modules for EsmLibraryPlugin by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12338
- fix(plugin): remove duplicated chunks in html scripts by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12304
- fix: should generate sri hash for chunks that only have concatenated modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12310
- fix: persistent cache watch context dependencies changes by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12309
- fix: should set interop2_used to true if namespace import default-only by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12316
- fix: check unused class names should check all conventions by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12336
- refactor: render dependency template with runtime template by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12280
- refactor: render
__webpack_require__in static code by runtime template by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12284 - refactor: refactor incremental using internal mutation by @hardfist in https://github.com/web-infra-dev/rspack/pull/12288
- refactor: split module_graph_mut by @hardfist in https://github.com/web-infra-dev/rspack/pull/12295
- refactor: render HMR runtime by runtime template by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12297
- refactor: render mf runtime by runtime template by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12298
- refactor: render runtime root variables by runtime template by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12308
- refactor: refactor collect_build_module_graph_effects using artifact by @hardfist in https://github.com/web-infra-dev/rspack/pull/12287
- refactor: render runtime module variables by runtime template by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12315
- docs: update Data URI sub-title by @9aoy in https://github.com/web-infra-dev/rspack/pull/12282
- docs: add filename placeholders documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12301
- docs: update plugin support status by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12314
- docs: improve
output.environmentconfiguration by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12312 - docs: polish phrasing in code splitting guides by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12321
- docs(loader): update
Rule.use.parallelto includemaxWorkersoption by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12322 - docs: polish introduction wording by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12325
- docs: fix the misstatements in the lazy compilation documentation by @Sunny-117 in https://github.com/web-infra-dev/rspack/pull/12330
- chore: release v1.6.5 by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12278
- chore(deps): update dependency @ast-grep/napi to ^0.40.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12290
- chore(deps): update dependency @microsoft/api-extractor to v7.55.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12291
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12289
- chore(deps): update dependency @microsoft/api-extractor-model to v7.32.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12292
- chore: add
import_meta_property_in_destructuringparser hook by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12255 - chore(workflow): update node version to 22 in ci and nvm configuration by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12320
- chore: add Rsdoctor diff action by @yifancong in https://github.com/web-infra-dev/rspack/pull/12264
- test: bump rstest to show relevant running tests by @9aoy in https://github.com/web-infra-dev/rspack/pull/12323
- ci: add ecosystem CI based on rstack-ecosystem-ci by @fi3ework in https://github.com/web-infra-dev/rspack/pull/12318
- ci(ecosystem): do not need to clone ecosystem ci repo to sub folder by @fi3ework in https://github.com/web-infra-dev/rspack/pull/12339
- chore(CI): replace the rspack diff demos by @yifancong in https://github.com/web-infra-dev/rspack/pull/12337
- @Pablinho made their first contribution in https://github.com/web-infra-dev/rspack/pull/12277
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.5...v1.6.6