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
v1.6.5
- feat: support prefetch and preload in css extract plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12237
- feat: support SRI with
experiments.cssandCssExtractRspackPluginby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12239
- fix: should inject prefetch startup in entry chunk instead of runtime chunk by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12233
- fix: persistent cache watch missing dependencies changes by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12228
- fix: generate stable extract css runtime by sorting css chunks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12246
- fix(create-rspack): use current package manager in templates by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12248
- fix: inline enum module should populate its collected_typescript_info by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12252
- fix: buildDependency resolver add more file extensions by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12260
- fix: should not panic when SRI options is invalid by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12259
- fix: not try to add integrity to tags with remote url by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12262
- fix(cli):
devServer.hot: falsenot work by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12261 - fix: use modern syntax for reexport runtime by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12268
- fix: should match protocol-relative url of public path and tag src in SRI plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12265
- fix: track package.json files in node_modules as build dependencies by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12274
- refactor: processing more string concatenation in runtime template part 2 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12235
- refactor: rename webpack imported vars to rspack format by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12245
- refactor: rename webpack external vars to rspack format by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12249
- refactor: rename webpack default export var to rspack format by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12257
- refactor: rename webpack reexport vars to Rspack format by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12263
- refactor: use chunk id as the placeholder when calculating content-hash by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12271
- refactor: render runtime globals by runtime template by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12272
- docs(config): improve
nodeoptions docs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12236
- test:
maxConcurrencyandtestTimeoutshould be configurable via cli options by @9aoy in https://github.com/web-infra-dev/rspack/pull/12231 - test: should wait until async startup chunk dependencies loaded by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12234
- chore: release v1.6.4 by @SyMind in https://github.com/web-infra-dev/rspack/pull/12229
- chore: update rspack resolver to v0.6.6 by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12149
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12242
- chore: disable Rslint warnings by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12243
- chore: bump rstest to support show slow-running tests by @9aoy in https://github.com/web-infra-dev/rspack/pull/12247
- chore(deps): update dependency @rslib/core to v0.18.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12269
- chore(deps): update dependency core-js to v3.47.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12270
- chore(deps): bump Rslib 0.18.1 and remove unnecessary build config by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12273
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.4...v1.6.5
v1.6.4
- feat: support arrow function in on_chunks_loaded callback by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12193
- feat(rslib): handle hashbang / react directives natively by @fi3ework in https://github.com/web-infra-dev/rspack/pull/12168
- fix: should transform
output.pathwhile emitting assets by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12181 - fix: should not transform
[name]/[file]in wasm filename template by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12184 - fix: missing type of http proxy middleware options by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12188
- fix: json module size by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12189
- fix: triple with windows-msvc doesn't support -Cforce-unwind-tables=no by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12196
- fix: target should use includes windows-msvc instead of startsWith by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12198
- fix: should handle loader error with empty stack trace by @SyMind in https://github.com/web-infra-dev/rspack/pull/12213
- fix: system library name by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12215
- fix: should handle name convention of css compose by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12202
- fix:
swc-loadershould not respect.swcrcby @CPunisher in https://github.com/web-infra-dev/rspack/pull/12222 - fix(types): use namespace imports for Node.js built-in modules by @SyMind in https://github.com/web-infra-dev/rspack/pull/12232
- refactor: move code splitting cache into artifact by @hardfist in https://github.com/web-infra-dev/rspack/pull/12164
- refactor: split make phase by @hardfist in https://github.com/web-infra-dev/rspack/pull/12186
- refactor: split module_graph into ModuleGraphRef and ModuleGraphMut by @hardfist in https://github.com/web-infra-dev/rspack/pull/12199
- refactor: processing more string concatenation in runtime template part 1 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12225
- docs: upgrade to Rspress V2 new UI by @SoonIter in https://github.com/web-infra-dev/rspack/pull/12201
- docs: improve section headers by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12216
- docs: update editLink config by @SoonIter in https://github.com/web-infra-dev/rspack/pull/12220
- docs: remove HomeBackground and navTransparent hack by @SoonIter in https://github.com/web-infra-dev/rspack/pull/12224
- docs(config): improve module.defaultRules documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12230
- chore(release): fix debug package release failure by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12182
- chore: release v1.6.3 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12180
- chore: bump rust toolchain by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12183
- test(native-watcher): init native watcher tests by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/12185
- chore(ci): support force use github artifacts by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12187
- test: rename test script from 'test:rstest' to 'test:base' by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12194
- ci(native-watcher): test multiple platforms by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/12197
- chore(deps): update dependency case-police to ~2.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12206
- chore(deps): update dependency markdown-to-jsx to v8 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12208
- chore(deps): update rust crate fast-glob to v1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12209
- chore(deps): update dependency emnapi to ^1.7.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12157
- test: test suite name should include base path by @9aoy in https://github.com/web-infra-dev/rspack/pull/12214
- test: disable iconv-lite decode warning in test tools by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12217
- chore(deps): update rust crate rayon to 1.11.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12129
- chore(deps): update dependency glob to v11.1.0 [security] by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12223
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.3...v1.6.4
v1.6.3
- feat: export ErrorData from rspack_error crate by @ityuany in https://github.com/web-infra-dev/rspack/pull/12166
- fix: image source should be buffer by @SyMind in https://github.com/web-infra-dev/rspack/pull/12176
- docs(split-chunks): update module federation compatibility note by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12178
- chore: simplify import comment style in output code by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12163
- chore(deps): update dependency @rspack/lite-tapable to v1.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12156
- chore(ci): revert cache action version by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12170
- chore(ci): fix artifacts slow download by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12171
- test: can not handle
uncaughtExceptioncorrectly by @9aoy in https://github.com/web-infra-dev/rspack/pull/12179
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.2...v1.6.3
v1.6.2
- perf: replace source and cached source by @SyMind in https://github.com/web-infra-dev/rspack/pull/12110
- feat(mf): support manifest by @2heal1 in https://github.com/web-infra-dev/rspack/pull/11846
- feat: add Tracy profiler support by @hardfist in https://github.com/web-infra-dev/rspack/pull/12048
- feat(react-refresh-loader): generate more compact runtime code by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12160
- fix: should generate correct relative path for context modules in sourcemap by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12078
- fix: render external re-exports by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12089
- fix: support
import.meta.urlas the only param ofnew Worker()by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12095 - fix: inject global entry to async entrypoints by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12096
- fix(rstest): should only handles JavaScript module by @fi3ework in https://github.com/web-infra-dev/rspack/pull/12068
- fix: should rename global in node by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12102
- fix: should add file dependencies in
loaderContext.resolveby @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12107 - fix: inner graph class static block usage by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12114
- fix: should not inject CSS prefetch/preload runtime when only prefetch/preload JS chunks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12112
- fix: keep entry chunk signature by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12133
- fix: use real resource when exporting from external by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12136
- fix: loader order of nested rules by @nilptr in https://github.com/web-infra-dev/rspack/pull/12132
- fix: mf container entry use startup to load initial chunks by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12142
- fix: should not panic if ref-cjs is removed by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12147
- fix: should export external aliased right by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12143
- fix: should have JS entry for importModule assets and rslib by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12167
- refactor: remove support for nested importModule usage by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12111
- refactor: render runtime globals with runtime template by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12144
- refactor: rename some classes and static variables by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12145
- refactor: move compilation.rs to the compilation folder by @hardfist in https://github.com/web-infra-dev/rspack/pull/12159
- refactor: move build_chunk_graph into compilation by @hardfist in https://github.com/web-infra-dev/rspack/pull/12162
- test: custom resource loader of test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12091
- chore(deps): update dependency lint-staged to v16 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12098
- chore(deps): update github-actions (major) by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12099
- chore(deps): update rust crate swc_core to 46.0.3 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12085
- test: enable more watch cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12106
- chore: remove webpackBootstrap comment from output by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12108
- chore: remove divider comment from output by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12109
- chore(deps): update dependency terser to v5.44.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12117
- chore(deps): update dependency cspell to ^9.3.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12115
- chore(deps): update dependency prebundle to ^1.5.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12116
- chore(deps): update dependency @shikijs/transformers to ^3.15.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12119
- chore(deps): update dependency axios to ^1.13.2 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12120
- chore(deps): update pnpm to v10.20.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12118
- chore(deps): update dependency @microsoft/api-extractor to v7.54.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12088
- chore(deps): update rust crate tokio to 1.48.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12123
- chore(deps): update rust crate regex to 1.12.2 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12122
- chore(deps): update rust crate notify to 8.2.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12121
- docs: document global entry behavior in EntryPlugin by @Copilot in https://github.com/web-infra-dev/rspack/pull/12105
- chore(deps): update rust crate either to 1.15.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12128
- chore(deps): update rust crate camino to 1.2.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12127
- test: migrate rspack wasm test to rstest by @CPunisher in https://github.com/web-infra-dev/rspack/pull/11990
- test: rename
toMatchFileSnapshottotoMatchFileSnapshotSyncby @9aoy in https://github.com/web-infra-dev/rspack/pull/12139 - test: remove jest script by @9aoy in https://github.com/web-infra-dev/rspack/pull/12150
- chore(deps): update dependency iconv-lite to ^0.7.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12158
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12153
- chore: deprecate experiments.parallelCodeSplitting by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12169
- revert: refactor: remove support for nested importModule usage (#12111) by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12165
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.1...v1.6.2
v1.6.1
- perf: rspack sources memory by @SyMind in https://github.com/web-infra-dev/rspack/pull/12038
- fix: use match resource first when generating css local ident name by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12040
- fix: should export named webpack_require from runtime chunk by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12045
- fix: should increase the counter of sized in mangle exports plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12044
- fix: compatibility
__non_webpack_require__with es modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12052 - fix: get chunk filename with dependOn by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12053
- fix: remove redundant
OutputFileSystem.createReadStreamby @colinaaa in https://github.com/web-infra-dev/rspack/pull/12059 - fix(config): validate
output.pathmust be absolute by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12061 - fix: should disable default splitChunks rules for EsmLibraryPlugin by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12047
- fix: should handle require ensure with error function by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12054
- fix: should parse webpackExports with empty array by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12066
- fix: use correct Cell for EsmLibraryPlugin by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12067
- fix: properties of build meta should be optional when sending to dll plugin from javascript by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12070
- fix: treat HMR's
warnUnexpectedRequireas undefined module factory by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12016 - fix: defer import and dynamic exportsType default export mixed by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12082
- fix:
new URL("", import.meta.url)should be pure by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12076
- refactor: import external should not create needless external module by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12064
- docs: add 1.6.0 release blog by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12019
- docs: improve English clarity in documentation by @Copilot in https://github.com/web-infra-dev/rspack/pull/12060
- docs: move deprecated experimental options to the bottom by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12049
- docs(quick-start): update non-interactive mode section by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12083
- chore: release 1.6.0 by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12042
- chore(deps): update dependency core-js to v3.46.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12057
- chore(deps): update dependency @rslib/core to v0.17.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12056
- chore(deps): update dependency @biomejs/biome to ^2.3.2 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12055
- chore(renovate): disable lockFileMaintenance by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12063
- chore: improve struct type and remove some useless fields by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12071
- chore: ensure that prettier can format all markdown and JSON files by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12075
- chore(deps): update dependency @babel/preset-react to ^7.28.5 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12087
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12084
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.0...v1.6.1