@@ -16,14 +16,14 @@ The output is shown below:
1616Usage: rslib <command> [options]
1717
1818Options:
19- -V, --version output the version number
20- -h, --help display help for command
19+ -V, --version output the version number
20+ -h, --help display help for command
2121
2222Commands:
23- build [options] build the library for production
24- inspect [options] inspect the Rsbuild / Rspack configs of Rslib projects
25- mf [options] <dev> start Rsbuild dev server of Module Federation format
26- help [command] display help for command
23+ build [options] build the library for production
24+ inspect [options] inspect the Rsbuild / Rspack configs of Rslib projects
25+ mf-dev [options] start Rsbuild dev server of Module Federation format
26+ help [command] display help for command
2727```
2828
2929## rslib build
@@ -40,7 +40,7 @@ Options:
4040 -r --root <root> specify the project root directory, can be an absolute path or a path relative to cwd
4141 --env-mode <mode> specify the env mode to load the `.env.[mode]` file
4242 --env-dir <dir> specify the directory to load `.env` files
43- --lib <id> build the specified library (may be repeated )
43+ --lib <id> specify the library (repeatable, e.g. --lib esm --lib cjs )
4444 -w --watch turn on watch mode, watch for changes and rebuild
4545 -h, --help display help for command
4646```
@@ -149,7 +149,7 @@ Options:
149149 -r --root <root> specify the project root directory, can be an absolute path or a path relative to cwd
150150 --env-mode <mode> specify the env mode to load the `.env.[mode]` file
151151 --env-dir <dir> specify the directory to load `.env` files
152- --lib <id> inspect the specified library (may be repeated )
152+ --lib <id> specify the library (repeatable, e.g. --lib esm --lib cjs )
153153 --output <output> specify inspect content output path (default: ".rsbuild")
154154 --verbose show full function definitions in output
155155 -h, --help display help for command
@@ -192,9 +192,9 @@ Inspect config succeed, open following files to view the content:
192192 - Rspack Config (cjs): /project/dist/.rsbuild/rspack.config.cjs.mjs
193193```
194194
195- ## rslib mf dev
195+ ## rslib mf- dev
196196
197- The ` rslib mf dev ` command is utilized to start Rsbuild dev server for the [ Module Federation] ( /guide/advanced/module-federation ) format.
197+ The ` rslib mf- dev ` command is utilized to start Rsbuild dev server for the [ Module Federation] ( /guide/advanced/module-federation ) format.
198198
199199This enables you to develop and debug your mf format module within the host app.
200200
@@ -208,6 +208,7 @@ Options:
208208 -r --root <root> specify the project root directory, can be an absolute path or a path relative to cwd
209209 --env-mode <mode> specify the env mode to load the `.env.[mode]` file
210210 --env-dir <dir> specify the directory to load `.env` files
211+ --lib <id> specify the library (repeatable, e.g. --lib esm --lib cjs)
211212 -h, --help display help for command
212213```
213214
0 commit comments