npm @rspack/core 2.0.0-rc.2
v2.0.0-rc.2

20 hours ago

What's Changed

Performance Improvements ⚡

  • perf(code-splitting): reuse side effects evaluation state by @LingyuCoder in #13668
  • perf: trace hook interception only pays off once global tracing is already on by @SyMind in #13689

New Features 🎉

  • feat(create-rspack): modernize starter template configs by @chenjiahan in #13645
  • feat(split-chunks): support enforceSizeThreshold option by @jaehafe in #13576
  • feat(resolve): support #/ subpath alias import by @stormslowly in #13633
  • feat(create-rspack): reuse rspack config in rstest templates by @chenjiahan in #13666
  • feat: enforce macro-generated implemented_hooks in debug builds by @SyMind in #13677
  • feat: only apply require-* parser plugins to js-auto/js-dynamic by @SyMind in #13678
  • feat: skip building side-effect-only imports in make by @ahabhgk in #13688
  • feat: add compiler.hooks.shouldRecord for NoEmitOnErrorsPlugin by @stormslowly in #13630
  • feat(cli): use jiti to load typescript config by @hardfist in #13690

Bug Fixes 🐞

  • fix(browser): import napi symbols from binding by @CPunisher in #13641
  • fix(core): fix cjs export function tree shaking by @ahabhgk in #13643
  • fix(config): tighten rule loader/use typings by @kyungilcho in #13514
  • fix: add @emnapi/core and @emnapi/runtime as dependencies by @CPunisher in #13665
  • fix(loader): preserve additionalData in builtin loaders by @ahabhgk in #13661
  • fix(cli): disable hmr in preview by @chenjiahan in #13669
  • fix(hash): keep fullhash in sync with css-only content changes by @GiveMe-A-Name in #13491
  • fix(watcher): flush pending events on unpause to prevent stuck files_data by @stormslowly in #13603
  • fix(watcher): filter stale FSEvents with mtime baseline comparison by @stormslowly in #13610
  • fix(rstest): respect importFunctionName when importDynamic is disabled by @9aoy in #13673
  • fix: fix flaky wasm tests by @hardfist in #13655
  • fix: support module external type in array externals by @JSerFeng in #13663
  • fix(mf): resolve version from parent package for secondary entry points by @davidfestal in #13636
  • fix(wasm): fix browser e2e timeout by running @rspack/browser builds in a worker by @hardfist in #13687
  • fix: Revert rstest importFunctionName feature when importDynamic is disabled by @9aoy in #13699

Refactor 🔨

  • refactor(concatenated-module): reduce clone overhead by @LingyuCoder in #13642
  • refactor: replace expect("TODO") with descriptive error messages by @jaehafe in #13685

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v2.0.0-rc.1...v2.0.0-rc.2

Don't miss a new core release

NewReleases is sending notifications on new releases.