Releases: web-infra-dev/rslib
v0.10.2
What's Changed
Bug Fixes 🐞
- fix(dts): should emit all kinds of diagnostics when composite is true by @Timeless0911 in #1081
Document 📖
- docs: remove index page from rss by @Timeless0911 in #1078
- docs: use import attributes to import JSON files by @Timeless0911 in #1079
Other Changes
- Release v0.10.2 by @Timeless0911 in #1082
Full Changelog: v0.10.1...v0.10.2
v0.10.1
What's Changed
Bug Fixes 🐞
- fix: do not redirect third party css file by @Timeless0911 in #1069
Document 📖
- docs: specify minify for umd format by @Timeless0911 in #1064
Other Changes
- chore(deps): bump Rslib v0.10.0 by @Timeless0911 in #1063
- chore: let GitHub languages ignores MDX files by @Timeless0911 in #1065
- chore(deps): bump Rsbuild 1.4.0-beta.4 by @Timeless0911 in #1067
- refactor: remove circular dependency and add plugin to detect by @Timeless0911 in #1070
- chore(deps): update Biome to v2 by @Timeless0911 in #1072
- chore(deps): update all non-major dependencies by @renovate in #1074
- Release v0.10.1 by @Timeless0911 in #1075
Full Changelog: v0.10.0...v0.10.1
v0.10.0
Highlights ✨
New ESM Output
We have simplified the ESM output to improve readability and reduce bundle size. See the comparison in the figure below.

Compared with v0.9.2, additional optimization for import default has been included.
What's Changed
New Features 🎉
- feat: bump Rsbuild 1.4.0-beta.3 to enhance default import rename by @Timeless0911 in #1053
Bug Fixes 🐞
- fix: bump
storybook-addon-rslib
to fix mf storybook edge case by @Timeless0911 in #1047
Document 📖
- docs: add more chapters of TypeScript related by @Timeless0911 in #1048
- docs: generate the sitemap for SEO by @chenjiahan in #1049
- docs: remove Modern.js Module tests coverage by @Timeless0911 in #1051
- docs: add difference of modify config plugin hook by @Timeless0911 in #1058
- docs: clarify how to set browserslist by @Timeless0911 in #1057
- docs: how to generate esm outputs for mf format by @Timeless0911 in #1059
- docs: list a table of all dts features by @Timeless0911 in #1055
Other Changes
- chore(deps): revert rspress 2.0.0-beta.10 by @Timeless0911 in #1045
- chore(deps): update all non-major dependencies by @renovate in #1046
- test: correct test config of resolve false case by @Timeless0911 in #1050
- chore(deps): update all non-major dependencies by @renovate in #1061
- chore(plugin-dts): remove error stack which is not helpful to users by @Timeless0911 in #1056
- test: do not display expected error logs in terminal during testing by @Timeless0911 in #1054
- Release v0.10.0 by @Timeless0911 in #1062
Full Changelog: v0.9.2...v0.10.0
v0.9.2
Highlights ✨
We have simplified the ESM output, see the comparison in the figure below.
No __webpack_exports__
and __WEBPACK_EXTERNAL_MODULE_
now!

What's Changed
New Features 🎉
- feat(create-rslib): bump Storybook to v9 by @renovate in #1036
- feat: bump Rsbuild 1.4.0-beta.2 to enhance external module render by @Timeless0911 in #1042
Document 📖
- docs: update output format description to include IIFE by @chenjiahan in #1038
- docs: reopen domain redirection by @Timeless0911 in #1041
Other Changes
- chore(deps): update all non-major dependencies by @renovate in #1035
- test: filter the tsconfig error log by @chenjiahan in #1039
- chore(deps): update all non-major dependencies by @renovate in #1043
- Release v0.9.2 by @Timeless0911 in #1044
Full Changelog: v0.9.1...v0.9.2
v0.9.1
What's Changed
New Features 🎉
- feat(dts): support override bundledPackages by @Timeless0911 in #1025
Bug Fixes 🐞
Document 📖
- docs: update Rslib website URL by @chenjiahan in #1026
- docs: redirect lib.rsbuild.dev to rslib.rs by @chenjiahan in #1027
- docs: update redirect rules order by @chenjiahan in #1028
- docs: update URLs to use new domains by @chenjiahan in #1029
- docs: disable domain redirection by @chenjiahan in #1030
- docs: update Vue template in quick start chapter by @Timeless0911 in #1031
Other Changes
- chore(deps): update all non-major dependencies by @renovate in #1023
- chore(deps): change @rsbuild/core from caret (^) to tilde (~) range by @Timeless0911 in #1024
- Release v0.9.1 by @Timeless0911 in #1033
Full Changelog: v0.9.0...v0.9.1
v0.9.0
Highlights ✨
This release brings exciting new features to Rslib:
Vue support
Rslib now provides support for building Vue component libraries by integrating unplugin-vue. Checkout Solution - Vue to learn how to build a Vue component library using Rslib. Additionally, storybook-vue3-rsbuild
is provided for Vue3 Storybook support.

What's Changed
New Features 🎉
- feat: support Vue with unplugin-vue by @fi3ework in #995
- feat: support
umdName
of array and object type by @Timeless0911 in #1020 - feat(template): add Vue by @fi3ework in #960
Performance 🚀
- perf: replace
commander
withcac
by @Timeless0911 in #1012
Document 📖
- docs: update Rstack introduction by @chenjiahan in #1006
- docs: optimize
source.exclude
description by @Timeless0911 in #1009 - docs: add how to preserve module variables by @Timeless0911 in #1010
- docs: optimize cli docs by @Timeless0911 in #1013
- docs: update plugins bundleless compatibility by @Timeless0911 in #1014
- docs(rspress): use @rspress/plugin-algolia for search by @SoonIter in #1015
- docs: create Vue project by @Timeless0911 in #1021
Other Changes
- chore(deps): update all non-major dependencies by @renovate in #1008
- chore(renovate): update Renovate configuration by @Timeless0911 in #1016
- chore(deps): update all non-major dependencies by @renovate in #1018
- Release v0.9.0 by @Timeless0911 in #1022
Full Changelog: v0.8.0...v0.9.0
v0.8.0
Highlights ✨
IIFE Format Support
Set format to 'iife'
to generate IIFE JavaScript output which stands for "immediately-invoked function expression" and is intended to be run in the browser, see IIFE for more details.
source code
// parent-sdk is marked as externals
// externals: ['parent-sdk']
import { version } from 'parent-sdk';
alert(version);
output
(
() => {
'use strict';
const external_parent_sdk_namespaceObject = globalThis['parent-sdk'];
alert(external_parent_sdk_namespaceObject.version);
},
)();
What's Changed
New Features 🎉
Document 📖
- docs: add Rstest to homepage by @chenjiahan in #997
Other Changes
- chore(renovate): ignore updating
@ast-grep/napi
by @Timeless0911 in #994 - chore(deps): update dependency commander to v14 by @renovate in #1002
- chore(deps): update all non-major dependencies by @renovate in #1001
- Release v0.8.0 by @Timeless0911 in #1005
Full Changelog: v0.7.1...v0.8.0
v0.7.1
Highlights ✨
In 0.7.0
, due to breaking changes in @ast-grep/napi
, Ubuntu 20 is not supported if user enable dts generation.
This version revert this.
What's Changed
Document 📖
- docs(blog): introducing Rslib blog by @fi3ework in #980
- docs: fix invalid link in blog by @Timeless0911 in #987
- docs: add OG images for website by @chenjiahan in #988
Other Changes
- chore(deps): pin @ast-grep/napi 0.37.0 to keep support for ubuntu 20 by @Timeless0911 in #992
- Release v0.7.1 by @Timeless0911 in #993
Full Changelog: v0.7.0...v0.7.1
v0.7.0
Highlights ✨
First blog for Rslib 📚
Check out our first blog for Rslib: Rslib: Build library with Rspack
We are excited to introduce Rslib — a library development tool based on Rspack. Developed by ByteDance Web Infra Team, Rslib helps developers create JavaScript libraries and UI component libraries in a simple and intuitive way while enjoying the ultimate development experience brought by Rspack and Rsbuild.
Breaking changes 🚨
Reverted in v0.7.1
.
Due to breaking changes in @ast-grep/napi
, Ubuntu 20 is not supported now if user enable dts generation.
Update to Ubuntu 22 or higher if possible, reference: ast-grep/ast-grep@96f5500.
What's Changed
New Features 🎉
- feat: format default to
'esm'
by @Timeless0911 in #976 - feat(create-rslib): syntax default to node 18 by @Timeless0911 in #984
Bug Fixes 🐞
Other Changes
- chore(deps): update all non-major dependencies by @renovate in #977
- chore(deps): update dependency nx to v21 by @renovate in #978
- test: optimize test logs by @Timeless0911 in #979
- chore: throw error when using bundleless mode with mf format by @Timeless0911 in #983
- Release v0.7.0 by @Timeless0911 in #986
Full Changelog: v0.6.9...v0.7.0
v0.6.9
What's Changed
New Features 🎉
- feat: update Rsbuild 1.3.18 and set caller name by @chenjiahan in #974
Document 📖
- docs: fix output.assetPrefix badge typo by @Timeless0911 in #965
- docs: output.injectStyles by @Timeless0911 in #969
- docs(JSON): add output relationship with bundle mode by @fi3ework in #968
- docs(json): fix line highlighting by @fi3ework in #971
- docs(deps): upgrade rspress 2.0.0-beta.5 by @SoonIter in #973
Other Changes
- chore(deps): update all non-major dependencies by @renovate in #963
- chore(examples): add css and asset in umd example by @Timeless0911 in #972
- chore(deps): update all non-major dependencies by @renovate in #964
- Release v0.6.9 by @Timeless0911 in #975
Full Changelog: v0.6.8...v0.6.9