npm @rspack/cli 2.0.0-beta.6
v2.0.0-beta.6

5 hours ago

What's Changed

Breaking Changes 🛠

Performance Improvements ⚡

New Features 🎉

  • feat(esm-library): auto-name unnamed dynamic import chunks with deterministic module name by @JSerFeng in #13172
  • feat(deps): update @rspack/dev-server to 2.0.0-beta.1 by @chenjiahan in #13205
  • feat: cjs require variable property access tree shaking by @ahabhgk in #13155
  • feat: enable mangle exports for cjs full require by @ahabhgk in #13212
  • feat(esm-library): deduplicate non-concatenated external modules after scope hoisting by @JSerFeng in #13210
  • feat(esm): optimize dynamic import exports for namespace and tree-shaking by @JSerFeng in #13211
  • feat: support regex flags and JavaScript lookaheads in extractComments condition by @Copilot in #12990
  • feat(mf): shareScope support array type by @2heal1 in #13107
  • feat: add Node.js version check during initialization by @chenjiahan in #13261
  • feat: rsc support disable client api checks by @SyMind in #13263
  • feat: update devServer types for @rspack/dev-server v2 by @chenjiahan in #13278

Bug Fixes 🐞

  • fix: revert lastCompilation check for stats by @hardfist in #13214
  • fix(esm-library): fix dynamic import of same-chunk concatenated modules and external name deconfliction by @JSerFeng in #13220
  • fix: Fix stats artifact fallback warning test to use stale stats by @hardfist in #13219
  • fix: Remove DerefMut impl from ArcPath by @hardfist in #13235
  • fix(defaults): make module rules regex case-sensitive by @LingyuCoder in #13238
  • fix: dup external module declarations by @JSerFeng in #13231
  • fix: merge exports info when merging external modules by @JSerFeng in #13257
  • fix(create-rspack): update @rspack/dev-server to 2.0.0-beta.4 by @chenjiahan in #13268
  • fix: avoid import duplicate identifiers by @JSerFeng in #13267

Refactor 🔨

  • refactor: return empty artifact when access stats during artifact mutation by @hardfist in #13196
  • refactor: cache regex patterns for performance by @LingyuCoder in #13217
  • refactor: remove &mut Compilation in CompilationAddEntry hook by @hardfist in #13251
  • refactor: SourceSizeCache for module size cache by @CPunisher in #13258
  • refactor!: use strictThisContextOnImports to control ns obj as this by @ahabhgk in #13234
  • refactor(core): reduce identifier hashing in hot paths by @hardfist in #13269

Document Updates 📖

  • docs: fix html-rspack-plugin hook types of beforeEmit and afterEmit by @Gehbt in #13184
  • docs: update devServer.proxy documentation for v2 by @chenjiahan in #13206
  • docs: update webpack migration guide for minimizers by @chenjiahan in #13250
  • docs(dev-server): improve static files configuration documentation by @chenjiahan in #13253
  • docs: update descriptions to reflect refined webpack API by @chenjiahan in #13254

Other Changes

Full Changelog: v2.0.0-beta.5...v2.0.0-beta.6

Don't miss a new cli release

NewReleases is sending notifications on new releases.