Releases: web-infra-dev/rslib
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
v0.6.8
What's Changed
Bug Fixes 🐞
Document 📖
- docs(llms.txt): upgrade to [email protected] and add llms.txt by @SoonIter in #954
- docs(llms.txt): add more description by @SoonIter in #956
Other Changes
- chore(template): remove module field by @Timeless0911 in #955
- chore(deps): update all non-major dependencies by @renovate in #953
- chore(deps): update dependency @rsbuild/core to v1.3.14 by @renovate in #958
- chore(deps): update all non-major dependencies by @renovate in #961
- Release v0.6.8 by @Timeless0911 in #962
Full Changelog: v0.6.7...v0.6.8
v0.6.7
What's Changed
Bug Fixes 🐞
Other Changes
- Revert "chore: bump Rspack to canary (#941)" by @fi3ework in #948
- Release v0.6.7 by @Timeless0911 in #949
Full Changelog: v0.6.6...v0.6.7
v0.6.6
What's Changed
Bug Fixes 🐞
- fix: should process correct format of dts files by @Timeless0911 in #938
- fix: dts redirect extension should add correctly by @Timeless0911 in #940
- fix: should redirect import_require_clause statement in dts by @Timeless0911 in #945
Other Changes
- chore(deps): update all non-major dependencies by @renovate in #937
- chore: bump Rspack to canary by @fi3ework in #941
- chore(biome): should check all JavaScript file types by @Timeless0911 in #943
- chore(example): add SolidJS by @fi3ework in #944
- chore(deps): update all non-major dependencies by @renovate in #939
- Release v0.6.6 by @Timeless0911 in #946
Full Changelog: v0.6.5...v0.6.6