Open Timeless0911 opened 4 months ago
Usually this kind of tools need extends
options, don't you think?
Usually this kind of tools need
extends
options, don't you think?
Can you give some examples of what extends
is going to do?
突然说 Modern.js Module 不推荐使用,用 rslib 了,测试了一下,更简单很灵活,很棒!
另外请完善文档(以及中文文档支持),例如 Tailwind CSS 等只库上使用,打包不使用,自定义模板等等,现在这个文档 😂
功能请求:npm create rslib@latest 请添加一些命令行参数,可以选择不交互模式,如 --name / -n 名称,-lang / -l = ts ,additional : -a =biome 等等,方便拷贝一条命令就可以创建项目,而不是交互模式。
@lanmingle
突然说 Modern.js Module 不推荐使用,用 rslib 了,测试了一下,更简单很灵活,很棒!
Thank you for your dogfooding, we will release the first stable version 0.1.0 in the end of year.
另外请完善文档(以及中文文档支持),例如 Tailwind CSS 等只库上使用,打包不使用,自定义模板等等,现在这个文档 😂
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.
功能请求:npm create rslib@latest 请添加一些命令行参数,可以选择不交互模式,如 --name / -n 名称,-lang / -l = ts ,additional : -a =biome 等等,方便拷贝一条命令就可以创建项目,而不是交互模式。
You can open an issue in https://github.com/rspack-contrib/create-rstack.
You can open an issue in https://github.com/rspack-contrib/create-rstack.
create-rslib
already provides some CLI flags, see: https://lib.rsbuild.dev/guide/start/quick-start#quick-creation
突然说 Modern.js Module 不推荐使用,用 rslib 了,测试了一下,更简单很灵活,很棒!
Thank you for your dogfooding, we will release the first stable version 0.1.0 in the end of year.
另外请完善文档(以及中文文档支持),例如 Tailwind CSS 等只库上使用,打包不使用,自定义模板等等,现在这个文档 😂
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.
功能请求:npm create rslib@latest 请添加一些命令行参数,可以选择不交互模式,如 --name / -n 名称,-lang / -l = ts ,additional : -a =biome 等等,方便拷贝一条命令就可以创建项目,而不是交互模式。
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 configConfig
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