github web-infra-dev/rslib v0.22.0

10 hours ago

Highlights

Isolated Declaration Generation

Rslib now supports generating declaration files with the experimental dts.isolated option, powered by Rspack's built-in SWC fast_dts capability.

dts.isolated emits declaration files directly during the build without running a full type check, making declaration generation significantly faster.

This makes it a good fit for monorepo projects that use a separate high-performance type-checking workflow, such as rslint --type-check.

export default {
  lib: [
    {
      dts: {
        isolated: true,
      },
    },
  ],
};
Isolated Declaration Generation

More details: dts.isolated

What's Changed

New Features 🎉

Performance 🚀

Bug Fixes 🐞

Document 📖

Other Changes

Full Changelog: v0.21.5...v0.22.0

Don't miss a new rslib release

NewReleases is sending notifications on new releases.