Skip to content

Releases: web-infra-dev/rslib

v0.3.0

06 Jan 11:07
d65c83f
Compare
Choose a tag to compare

What's Changed

Highlights ✨

This release brings some improvements and new features, addressing common scenarios and enhancing the overall user experience:

  • Enhanced Style File Redirection: Support for redirect.style.path and redirect.style.extension to configure the redirection of the import paths of style files. (#618)
  • Optimized JavaScript File Redirection: Fix some cases about redirection of the import paths of output JavaScript files. (#615 #624)
  • Improved Bundleless Mode:
    • Support handling file additions and removals in watch mode. (#642)
    • Refined source.entry configuration, defaulting to src/** and excluding .d.ts files from being treated as entry points. (#636 #647)

Breaking changes 🚨

Please note the following changes that may require adjustments to your configurations:

  • Boolean values are no longer supported for redirect.style, see the documentation of redirect.style for more details. (#618)
  • The autoExternal configuration is no longer effective in bundleless mode, see the documentation of autoExternal for more details. (#624)

New Features 🎉

  • feat!: disable autoExternal in bundleless mode and only redirect request not in node_modules by @Timeless0911 in #624
  • feat!: support redirect.style.path and redirect.style.extension by @SoonIter in #618
  • feat: entry default to src/** in bundleless mode by @Timeless0911 in #647
  • feat: throw error when no configuration match --lib option by @Timeless0911 in #648

Bug Fixes 🐞

  • fix: do not treat .d.ts as entry by @fi3ework in #636
  • fix: detect possible glob pattern in bundle more by @fi3ework in #634
  • fix: handle add and unlink file in bundleless mode by @fi3ework in #642

Document 📖

  • docs: add how to skip the preprocessing of less/scss files by @Timeless0911 in #623

Other Changes

Full Changelog: v0.2.2...v0.3.0

v0.2.2

26 Dec 11:11
cc02815
Compare
Choose a tag to compare

What's Changed

Other Changes

Full Changelog: v0.2.1...v0.2.2

v0.2.1

26 Dec 09:30
988c684
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

Other Changes

Full Changelog: v0.2.0...v0.2.1

v0.2.0

24 Dec 10:37
002d4d4
Compare
Choose a tag to compare

What's Changed

Highlights ✨

Comparing with 0.1.0, we have fixed many bugs and added numerous features for common scenarios, including but not limited to:

  • Enhanced support for resolving external modules, improving the redirect of paths for bundleless mode. See lib.redirect. (#535)
  • Introduced support for loading .env files. See Environment Variables. (#518)
  • Optimized code compression to retain only essential comments, resulting in smaller output sizes. (#522)
  • Added support for watching rslib.config to trigger rebuilds. (#489)
  • Improved documentation and completed the translation of the Chinese documentation. See https://lib.rsbuild.dev/zh/index.

Breaking changes 🚨

  • rslib mf dev has been changed to rslib mf-dev command in #590, checkout the documentation of mf-dev for more details.

New Features 🎉

  • feat(css): support css asset in bundleless mode and esm/cjs by @SoonIter in #582
  • feat!: support --lib param of mf-dev command by @Timeless0911 in #590

Bug Fixes 🐞

Document 📖

Other Changes

Full Changelog: v0.1.5...v0.2.0

v0.1.5

19 Dec 03:46
85de70a
Compare
Choose a tag to compare

What's Changed

New Features 🎉

  • feat(css): support css asset in bundle mode and esm/cjs by @SoonIter in #573
  • feat: use resolver function to resolve module by @fi3ework in #535

Bug Fixes 🐞

Document 📖

Other Changes

Full Changelog: v0.1.4...v0.1.5

v0.1.4

13 Dec 09:44
be5bae1
Compare
Choose a tag to compare

What's Changed

New Features 🎉

  • feat: autoExternal default to false when format is umd or mf by @Timeless0911 in #531

Bug Fixes 🐞

Document 📖

Other Changes

  • chore(deps): update all patch dependencies by @renovate in #533
  • chore(deps): update dependency @rsbuild/plugin-react to ^1.1.0 by @renovate in #536
  • chore(deps): update dependency @testing-library/react to ^16.1.0 by @renovate in #537
  • chore(deps): update dependency check-dependency-version-consistency to v5 by @renovate in #540
  • chore(deps): update dependency nx to ^20.2.1 by @renovate in #539
  • chore(deps): update dependency memfs to ^4.15.0 by @renovate in #538
  • chore(deps): update types to v19 (major) by @renovate in #542
  • chore(deps): update react monorepo to v19 (major) by @renovate in #541
  • chore(workflow): set Issue types by @chenjiahan in #547
  • Release v0.1.4 by @Timeless0911 in #559

Full Changelog: v0.1.3...v0.1.4

v0.1.3

05 Dec 03:38
7bf3757
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Bug Fixes 🐞

Document 📖

Other Changes

Full Changelog: v0.1.2...v0.1.3

v0.1.2

02 Dec 11:54
db055f1
Compare
Choose a tag to compare

What's Changed

Performance 🚀

Bug Fixes 🐞

  • fix(esm): disable module.parser.javascript.url by @fi3ework in #509
  • fix: catch error when killing DTS child process by @9aoy in #510

Document 📖

Other Changes

  • chore(deps): update dependency @arco-design/web-react to ^2.65.0 by @renovate in #501
  • chore(deps): update dependency @module-federation/rsbuild-plugin to ^0.8.0 by @renovate in #503
  • test: fix unstable build watch case by @9aoy in #504
  • chore(deps): update all patch dependencies by @renovate in #500
  • chore(deps): update dependency @module-federation/enhanced to ^0.8.0 by @renovate in #502
  • chore: use resolve.alias instead of source.alias by @Timeless0911 in #507
  • Release v0.1.2 by @Timeless0911 in #511

Full Changelog: v0.1.1...v0.1.2

v0.1.1

28 Nov 11:49
37bc7ee
Compare
Choose a tag to compare

What's Changed

New Features 🎉

  • feat: clean dts files / buildinfo / .rslib temp folder by @Timeless0911 in #486
  • feat: support watch rslib.config to rebuild by @9aoy in #489

Bug Fixes 🐞

  • fix: entry query should handle non-string entry by @fi3ework in #484
  • fix: the moduleIds should be deterministic if the env is production and format is mf by @2heal1 in #487

Document 📖

Other Changes

  • chore(deps): update dependency rslib to v0.1.0 by @renovate in #465
  • chore(create-rslib): remove shebang workaround by @fi3ework in #466
  • chore(deps): update all patch dependencies by @renovate in #471
  • chore(deps): update dependency @microsoft/api-extractor to ^7.48.0 by @renovate in #472
  • chore(deps): update dependency preact to ^10.25.0 by @renovate in #474
  • chore(deps): update dependency @playwright/test to v1.49.0 by @renovate in #473
  • chore(deps): update dependency @rsbuild/core to ~1.1.5 by @renovate in #479
  • chore(deps): update dependency prettier to ^3.4.1 by @renovate in #483
  • test: avoid potential output conflict by @fi3ework in #481
  • chore(deps): update all patch dependencies by @renovate in #482
  • test: multiple entries now do not affect each other by @fi3ework in #485
  • chore(deps): update dependency rspress to v1.37.3 by @renovate in #490
  • Release v0.1.1 by @Timeless0911 in #491

Full Changelog: v0.1.0...v0.1.1

v0.1.0

21 Nov 06:45
4ac5d4b
Compare
Choose a tag to compare

What's Changed

New Features 🎉

  • feat: support incremental build when composite is true by @Timeless0911 in #416
  • feat: add EntryChunkPlugin to handle shebang and shims by @fi3ework in #399
  • feat: support lib.id by @fi3ework in #436
  • feat!: use 'commonjs-import' as CJS external type by default by @fi3ework in #438
  • feat: add --root cli option and make basic js api work by @Timeless0911 in #453
  • feat!: emit CSS files to dist instead of dist/static/css by @chenjiahan in #460

Bug Fixes 🐞

  • fix: respect declarationDir if dts.distPath is not set by @Timeless0911 in #420
  • fix: checkMFPlugin function support array plugins by @2heal1 in #419
  • fix: add tsdoc for config options by @fi3ework in #447
  • fix: js request when using autoExtension: false along with output.filename.js by @Timeless0911 in #455

Document 📖

Other Changes

New Contributors

Full Changelog: v0.0.18...v0.1.0