Skip to content

Releases: web-infra-dev/rspack

v2.0.0-alpha.1

27 Jan 08:39

Choose a tag to compare

What's Changed

Breaking Changes πŸ› 

New Features πŸŽ‰

Bug Fixes 🐞

  • fix(template): add @rspack/dev-server to dev dependencies by @LingyuCoder in #12821
  • fix: normalize paths for extract source map by @ahabhgk in #12825
  • fix(mf): use dynamic exports type for MF modules by @ahabhgk in #12841
  • fix: should not panic when access slate stats by @SyMind in #12839
  • fix(mf): prevent entry-specific chunks from polluting manifest assets and refactor manifest generation by @2heal1 in #12836

Refactor πŸ”¨

  • refactor: align IncrementalPass with rspack hooks naming by @hardfist in #12817
  • refactor: remove misleadning naming and adjust cache call place by @hardfist in #12818
  • refactor: unify persistent_cache and memory_cache recover logic by @hardfist in #12829
  • refactor: additional chunk runtime requirements hook use readonly compilation ref by @stormslowly in #12828
  • refactor: move recover build_chunk_graph into artifact by @hardfist in #12835

Document Updates πŸ“–

  • docs: update externals function callback about boolean type by @9aoy in #12824
  • docs: add tip for devtool's cheap modifier in production build by @SyMind in #12849

Other Changes

Full Changelog: v2.0.0-alpha.0...v2.0.0-alpha.1

v1.7.4

27 Jan 09:07

Choose a tag to compare

What's Changed

New Features πŸŽ‰

Bug Fixes 🐞

  • fix: require.resolve() replaced as require() by @intellild in #12773
  • fix: handle rs.requireActual and rs.importActual in all contexts by @9aoy in #12806
  • fix(mf): filter runtime plugin invocation for used exports by @ahabhgk in #12807
  • fix: fix panic caused by missing lazy dependency by @hardfist in #12820
  • fix(mf): use dynamic exports type for MF modules (cherry-pick #12841) by @ahabhgk in #12848
  • fix: normalize paths for extract source map (cherry-pick #12825) by @ahabhgk in #12847
  • fix: enable panic backtrace for release-debug by @hardfist in #12854
  • fix: should not panic when accessing slate stats for Rspack 1.x by @SyMind in #12853
  • fix(mf): cherry pick mf manifest improving to v1.x by @2heal1 in #12851

Refactor πŸ”¨

Other Changes

New Contributors

Full Changelog: v1.7.3...v1.7.4

v2.0.0-alpha.0

22 Jan 10:42

Choose a tag to compare

Note πŸ’‘

This is an early preview release intended for testing only. It introduces a number of breaking changes that are not yet final.

See #9270 for all breaking changes.

What's Changed

Breaking Changes πŸ› 

Bug Fixes 🐞

Document Updates πŸ“–

Full Changelog: v1.7.3...v2.0.0-alpha.0

v1.7.3

20 Jan 11:36

Choose a tag to compare

What's Changed

New Features πŸŽ‰

Bug Fixes 🐞

Refactor πŸ”¨

Other Changes

New Contributors

Full Changelog: v1.7.2...v1.7.3

v1.7.2

13 Jan 13:27
8eeb9c2

Choose a tag to compare

What's Changed

New Features πŸŽ‰

Bug Fixes 🐞

  • fix: report error when access module_graph in loader by @hardfist in #12639
  • fix(lint): enable @typescript-eslint/await-thenable rule by @tt-a1i in #12644
  • fix(lint): enable @typescript-eslint/require-await rule by @tt-a1i in #12664
  • fix(lint): enable @typescript-eslint/return-await rule by @tt-a1i in #12665
  • fix: incremental rebuild no code generation entry panic by @jerrykingxyz in #12643
  • fix: inlined export invalid syntax comment by @ahabhgk in #12681
  • fix(test): flaky test due to calling toJSON while hot updating by @stormslowly in #12694
  • fix: environments.importMetaDirnameAndFilename not work by @chenjiahan in #12708
  • fix: dynamic entry panic when disable build cache by @SyMind in #12696
  • fix(context-replacement): only apply changes when regex matches by @agneym in #12657
  • fix(mf): handle missing chunk gracefully and improve expose chunk name logic by @2heal1 in #12709
  • fix(type): runtimeModule.source by @9aoy in #12713

Refactor πŸ”¨

Other Changes

New Contributors

Full Changelog: v1.7.1...v1.7.2

v1.7.1

06 Jan 08:37

Choose a tag to compare

What's Changed

New Features πŸŽ‰

  • feat(module-federation): enhance manifest generation and shared module handling by @2heal1 in #12399

Bug Fixes 🐞

Refactor πŸ”¨

  • refactor: make compilation readonly for module ids hook by @hardfist in #12588
  • refactor: make compilation readonly for optimize tree hooks by @hardfist in #12597
  • refactor: use readonly compilation reference for after seal hook by @stormslowly in #12602
  • refactor: remove option in dependency_by_id by @hardfist in #12569
  • refactor: don't return option for dependency_id_to_parents by @hardfist in #12609
  • refactor: make compilation readonly for chunk_ids hooks by @hardfist in #12608
  • refactor: remove option in module_graph_module_by_identifier_mut by @hardfist in #12610
  • refactor: use read only compilation reference in after process assets hook by @stormslowly in #12615
  • refactor: move try_dependency_by_id api in internal folder by @hardfist in #12611
  • refactor: remove MaybeDynamicTargetExportInfo and simplify get_target by @LingyuCoder in #12601
  • refactor: introduce ExprRef to avoid clone Expr ast nodes by @CPunisher in #12622
  • refactor: remove unused SWC helpers by @CPunisher in #12614
  • refactor: replace UsageCallback closure with InnerGraphUsageOperation enum by @JSerFeng in #12619

Document Updates πŸ“–

Other Changes

Full Changelog: v1.7.0...v1.7.1

v1.7.0

31 Dec 07:00

Choose a tag to compare

πŸŽ‰ See Announcing Rspack 1.7 for more details.

What's Changed

Performance Improvements ⚑

New Features πŸŽ‰

Bug Fixes 🐞

Refactor πŸ”¨

Document Updates πŸ“–

  • docs: add docs about env to control working threads limit by @hardfist in #12383
  • docs: improve AGENTS.md and add comprehensive development documentation by @LingyuCoder in #12420
  • docs: upgrade rspress@2.0.0-rc.2 by @SoonIter in #12426
  • docs: update FAQ to clarify Rspack's support for Wasm and RSC by @chenjiahan in #12432
  • docs: enhance ignoreWarnings...
Read more

v1.7.0-beta.1

23 Dec 08:33

Choose a tag to compare

What's Changed

New Features πŸŽ‰

Bug Fixes 🐞

Refactor πŸ”¨

  • refactor(esm-lib-plugin): manually resolve exports that re star-exported, and improve NodeTargetPlugin for module output by @JSerFeng in #12476

Document Updates πŸ“–

Other Changes

Full Changelog: v1.7.0-beta.0...v1.7.0-beta.1

v1.7.0-beta.0

17 Dec 09:17

Choose a tag to compare

Highlights πŸ’‘

🎈 Upgrade SWC

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.

βœ… Enable lazy compilation by default

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,
  },
});

🎯 Stablize several experimental configurations

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,
  },
}

What's Changed

Performance Improvements ⚑

New Features πŸŽ‰

Bug Fixes 🐞

Refactor πŸ”¨

  • refactor: move cacheable macros to rspack_cacheable_macros by @jerrykingxyz in #12393
  • refactor: use atomic_refcell for async_module_artifact by @hardfist in #12408
  • refactor: use swc_experimental on concatenated module by @CPunisher in #12369
  • refactor: change dependencies_diagnostics_artifact to use atomic_refcell by @hardfist in #12415
  • refactor: replace SourceFile with &str and replace Arc<SourceMap> with Rope in rspack_plugin_javascript by @CPunisher in #12404
  • refactor: extract common utility functions to rspack_util by @LingyuCoder in #12447
  • refactor: remove linked_hash_set dependency by @LingyuCoder in #12451

Document Updates πŸ“–

Other Changes

Read more

v1.6.8

17 Dec 08:48

Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix: reexports in arrow-only environments without const by @chenjiahan in #12484
  • fix: re-validate HttpUriPlugin redirects against allowedUris and enforce http(s) and max redirects by @JSerFeng in #12463

Full Changelog: v1.6.7...v1.6.8