github web-infra-dev/rslib v0.20.0

4 hours ago

Breaking changes 🚨

Drop Node.js 18 support

Rslib v0.20 requires Node.js 20.19+ or 22.12+, Node.js 18 is no longer supported.

Rsbuild / Rspack v2

Rslib v0.20 now depends on beta version of @rsbuild/core v2 and @rspack/core v2. If you use custom Rsbuild / Rspack configurations or plugins, you may need to make corresponding adjustments.

See the Rsbuild v2 upgrade guide for all breaking changes.

Deprecate experiments.advancedEsm

experiments.advancedEsm is now deprecated and effectively ignored. Advanced ESM behavior is the default in both bundle and bundleless mode.

What you need to do:

  • Remove experiments.advancedEsm from your config
  • Verify the output behaviour

Rename type StartServerResult

The exported type StartServerResult has been renamed to StartDevServerResult.

What's Changed

New Features 🎉

  • feat!: upgrade Rsbuild to v2 and deprecate experiments.advancedEsm by @Timeless0911 in #1513
  • feat: updates the default contenthash length in filenames from 8 to 10 by @Timeless0911 in #1515

Bug Fixes 🐞

  • fix: validate glob entry correctness in bundle mode by @9aoy in #1512
  • fix(core): allow preserve jsx in bundleless mode to coexist with bundle mode by @Timeless0911 in #1523

Document 📖

Other Changes

Full Changelog: v0.19.6...v0.20.0

Don't miss a new rslib release

NewReleases is sending notifications on new releases.