Skip to content

v0.14.0

Choose a tag to compare

@Timeless0911 Timeless0911 released this 23 Sep 11:06
· 26 commits to main since this release
007c5f0

Breaking changes 🚨

Config loading

Currently, configuration files are loaded with jiti, which relies on Babel. This approach is relatively slow (at least ~70ms slower compared to native).

In Rslib v0.13.3, we introduced a new CLI option --config-loader native, which uses Node.js's native loader. This approach offers better performance and stricter behavior, but comes with certain requirements:

  • Requires Node v22.18+ with built-in TypeScript support
  • Import specifiers must include file extensions
  • When using TypeScript, package.json must set "type": "module"
  • Importing JSON requires with { type: "json" }

In Rslib v0.14.0, we adjust the default configuration loading behavior. The new default is now --config-loader auto, which:

  • First attempts to use the faster native loader
  • If that fails, it gracefully falls back to jiti for broader compatibility

This change to 'auto' as the default is part of our long-term plan to transition config loading from jiti to Node.js native.

What's Changed

New Features 🎉

Bug Fixes 🐞

Other Changes

Full Changelog: v0.13.3...v0.14.0