Skip to content

Releases: web-infra-dev/rslib

v0.14.0

23 Sep 11:06
007c5f0
Compare
Choose a tag to compare

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

v0.13.3

16 Sep 11:40
eb5e508
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Performance 🚀

  • perf(plugin-dts): require typescript to improve startup performance by @chenjiahan in #1224

Bug Fixes 🐞

  • fix: avoid chunk conflicts when multiple libs are present by @fi3ework in #1220

Other Changes

Full Changelog: v0.13.2...v0.13.3

v0.13.2

12 Sep 03:40
c71405e
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix: pin @rsbuild/core version to avoid @rspack/core 1.5.5 by @fi3ework in #1217

Other Changes

Full Changelog: v0.13.1...v0.13.2

v0.13.1

10 Sep 07:43
07dd6e2
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix(dts): tsgo bin path should begin with file protocol in windows by @Timeless0911 in #1211

Document 📖

Other Changes

Full Changelog: v0.13.0...v0.13.1

v0.13.0

08 Sep 09:37
5e30ec2
Compare
Choose a tag to compare

Highlights 💡

Faster declaration generation with tsgo

Rslib now can generate declaration files with tsgo, which can provide faster generation of declaration files, especially for large projects.

Tip

This feature is currently an experimental feature. Since tsgo is still in the experimental stage, there may be some bugs and unresolved issues or limitations. So, make sure to fully test it in your project before enabling this option.

export default {
  lib: [
    {
      dts: {
        tsgo: true,
      },
    },
  ],
};

What's Changed

New Features 🎉

Document 📖

Other Changes

Full Changelog: v0.12.4...v0.13.0

v0.12.4

28 Aug 11:41
58316e4
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: v0.12.3...v0.12.4

v0.12.3

27 Aug 06:18
dfb007c
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Bug Fixes 🐞

Other Changes

Full Changelog: v0.12.2...v0.12.3

v0.12.2

20 Aug 06:50
0300dad
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Document 📖

  • docs: code splitting doc links by @Timeless0911 in #1175
  • docs: remove unnecessary paragraphs in modernjs-module migration docs by @Timeless0911 in #1177
  • docs: fix various documentation errors: grammar, spelling, and formatting issues by @Copilot in #1179

Other Changes

New Contributors

  • @Copilot made their first contribution in #1179

Full Changelog: v0.12.1...v0.12.2

v0.12.1

15 Aug 10:37
ba51bd1
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Other Changes

Full Changelog: v0.12.0...v0.12.1

v0.12.0

13 Aug 09:27
4728c6f
Compare
Choose a tag to compare

Highlights 💡

Drop support for Node 16

Node.js 16 reached its end-of-life on September 11, 2023. Many other npm packages in the ecosystem have also dropped support for Node 16, including webpack-dev-server, css-loader, sass-loader, and so on, which makes maintaining compatibility increasingly challenging. Therefore, we have decided to drop Node 16 support starting from Rslib v0.12 to ensure better compatibility with the modern ecosystem.

Package v0.11 v0.12
@rslib/core >=16.7.0 >=18.12.0

Rslib v0.11 based on Rsbuild/Rspack v1.4 and Rslib v0.12 based on Rsbuild/Rspack v1.5:

Package v1.4 v1.5
@rspack/core >=16.0.0 >=18.12.0
@rsbuild/core >=16.10.0 >=18.12.0

⚠️ This is a breaking change for users still running Node.js 16. Users will need to upgrade to Node.js 18.12.0 or later to use Rslib v0.12.

For users currently using Node.js 16:

  1. Upgrade to Node.js 18.12.0 or later (Node.js 22 LTS is recommended)
  2. Update your CI/CD pipelines to use the new Node.js version

What's Changed

New Features 🎉

Bug Fixes 🐞

Document 📖

Other Changes

Full Changelog: v0.11.2...v0.12.0