v0.16.0
Highlights 💡
Additional build CLI options
The Rslib build command now supports additional CLI options that take precedence over configuration file settings, and can even be used without any configuration file entirely.
For example: rslib build --entry index.ts --minify --tsconfig tsconfig.build.json.
Usage:
$ rslib build
Options:
-w, --watch turn on watch mode, watch for changes and rebuild
--entry <entry> set entry file or pattern (repeatable)
--dist-path <dir> set output directory
--bundle enable bundle mode (use --no-bundle to disable)
--format <format> specify the output format (esm | cjs | umd | mf | iife)
--syntax <syntax> set build syntax target (repeatable)
--target <target> set runtime target (web | node)
--dts emit declaration files (use --no-dts to disable)
--externals <pkg> add package to externals (repeatable)
--minify minify output (use --no-minify to disable)
--clean clean output directory before build (use --no-clean to disable)
--auto-extension control automatic extension redirect (use --no-auto-extension to disable)
--auto-external control automatic dependency externalization (use --no-auto-external to disable)
--tsconfig <path> use specific tsconfig (relative to project root)
What's Changed
New Features 🎉
- feat(dts): support using
output.distPathas dts emit path by @Timeless0911 in #1269 - feat: support more cli options for build command by @fi3ework in #1258
- feat: support build without config file by @fi3ework in #1275
Bug Fixes 🐞
- fix: merge
output.distPathcorrectly by @Timeless0911 in #1270 - fix: Node shims for
'javascript/esm'files by @Timeless0911 in #1274 - fix: cjs
import.meta.urlshims in async chunks by @Timeless0911 in #1281 - fix: align esX browserslist expression to caniuse by @fi3ework in #1280
Document 📖
- docs: specify how to debug Rslib config by @Timeless0911 in #1279
Other Changes
- chore(deps): update actions/setup-node action to v6 by @renovate[bot] in #1268
- chore(deps): bump Rsbuild 1.6.0-beta.0 by @Timeless0911 in #1267
- chore: use shorter string value for
output.distPathby @Timeless0911 in #1271 - test: fix shims disable test by @Timeless0911 in #1272
- chore(deps): update all non-major dependencies by @renovate[bot] in #1276
- chore: disable lazyCompilation to make mf e2e case stable by @Timeless0911 in #1278
- Release v0.16.0 by @Timeless0911 in #1282
Full Changelog: v0.15.1...v0.16.0