-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rslib features track #46
Comments
Usually this kind of tools need |
Can you give some examples of what |
突然说 Modern.js Module 不推荐使用,用 rslib 了,测试了一下,更简单很灵活,很棒! 另外请完善文档(以及中文文档支持),例如 Tailwind CSS 等只库上使用,打包不使用,自定义模板等等,现在这个文档 😂 功能请求:npm create rslib@latest 请添加一些命令行参数,可以选择不交互模式,如 --name / -n 名称,-lang / -l = ts ,additional : -a =biome 等等,方便拷贝一条命令就可以创建项目,而不是交互模式。 |
Thank you for your dogfooding, we will release the first stable version 0.1.0 in the end of year.
Rslib documentation is still under construction, stay tuned for a stable version and we will translate the Chinese document after the English document is completed.
You can open an issue in https://github.com/rspack-contrib/create-rstack. |
|
|
CLI
npm create rslib@latest
to create a Rslib project--inspect
to show Rslib/Rsbuild/Rspack configrslib.config
to rebuild #138Config
Features
bundle / bundleless
format
output.library.type
platform
alias
autoExtension
.js
with esm format and.cjs
with cjs format whentype: module
.js
with cjs format and.mjs
with esm format whentype: commonjs
.d.ts
with esm format and.d.cts
with cjs format whentype: module
.d.ts
with cjs format and.d.mts
with esm format whentype: commonjs
externals
output.externals
redirect
shims
__filename
and__dirname
in esmimport.meta.url
in cjsmodule.parser.javascript.importMeta = false
in esmbanner & footer
dts
cleanDistPath
to clean DTS output before emitabortOnError
option to control whether to exit process when dts build errorcss
Module Federation
input
copy
define
minify
outDir
resolve
sourcemap
transformImport
decorators
asset
polyfill
prebundle
Ecosystem
Advanced
Migration
The text was updated successfully, but these errors were encountered: