We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
npm create rslib@latest
--inspect
rslib.config
We try to keep the features aligned with Modern.js Module
output.library.type
.js
.cjs
type: module
.mjs
type: commonjs
.d.ts
.d.cts
.d.mts
output.externals
__filename
__dirname
import.meta.url
module.parser.javascript.importMeta = false
cleanDistPath
abortOnError
The text was updated successfully, but these errors were encountered:
Usually this kind of tools need extends options, don't you think?
extends
Sorry, something went wrong.
Can you give some examples of what extends is going to do?
create-rslib
No branches or pull requests
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: