@@ -52,31 +52,31 @@ export type Dts =
5252 /**
5353 * Whether to bundle the declaration files.
5454 * @defaultValue `false`
55- * @see {@link https://lib.rsbuild.dev /config/lib/dts#dtsbundle }
55+ * @see {@link https://rslib.rs /config/lib/dts#dtsbundle }
5656 */
5757 bundle ?: boolean ;
5858 /**
5959 * The output directory of declaration files.
60- * @defaultValue {@link https://lib.rsbuild.dev /config/lib/dts#default-value }
61- * @see {@link https://lib.rsbuild.dev /config/lib/dts#dtsdistpath }
60+ * @defaultValue {@link https://rslib.rs /config/lib/dts#default-value }
61+ * @see {@link https://rslib.rs /config/lib/dts#dtsdistpath }
6262 */
6363 distPath ?: string ;
6464 /**
6565 * Whether to generate declaration files with building the project references.
6666 * @defaultValue `false`
67- * @see {@link https://lib.rsbuild.dev /config/lib/dts#dtsbuild }
67+ * @see {@link https://rslib.rs /config/lib/dts#dtsbuild }
6868 */
6969 build ?: boolean ;
7070 /**
7171 * Whether to abort the build process when an error occurs during declaration files generation.
7272 * @defaultValue `true`
73- * @see {@link https://lib.rsbuild.dev /config/lib/dts#dtsabortonerror }
73+ * @see {@link https://rslib.rs /config/lib/dts#dtsabortonerror }
7474 */
7575 abortOnError ?: boolean ;
7676 /**
7777 * Whether to automatically set the declaration file extension based on the {@link format} option.
7878 * @defaultValue `false`
79- * @see {@link https://lib.rsbuild.dev /config/lib/dts#dtsautoextension }
79+ * @see {@link https://rslib.rs /config/lib/dts#dtsautoextension }
8080 */
8181 autoExtension ?: boolean ;
8282 }
@@ -88,25 +88,25 @@ export type AutoExternal =
8888 /**
8989 * Whether to automatically externalize dependencies of type `dependencies`.
9090 * @defaultValue `true`
91- * @see {@link https://lib.rsbuild.dev /config/lib/auto-external#autoexternaldependencies }
91+ * @see {@link https://rslib.rs /config/lib/auto-external#autoexternaldependencies }
9292 */
9393 dependencies ?: boolean ;
9494 /**
9595 * Whether to automatically externalize dependencies of type `optionalDependencies`.
9696 * @defaultValue `true`
97- * @see {@link https://lib.rsbuild.dev /config/lib/auto-external#autoexternaloptionaldependencies }
97+ * @see {@link https://rslib.rs /config/lib/auto-external#autoexternaloptionaldependencies }
9898 */
9999 optionalDependencies ?: boolean ;
100100 /**
101101 * Whether to automatically externalize dependencies of type `peerDependencies`.
102102 * @defaultValue `true`
103- * @see {@link https://lib.rsbuild.dev /config/lib/auto-external#autoexternalpeerdependencies }
103+ * @see {@link https://rslib.rs /config/lib/auto-external#autoexternalpeerdependencies }
104104 */
105105 peerDependencies ?: boolean ;
106106 /**
107107 * Whether to automatically externalize dependencies of type `devDependencies`.
108108 * @defaultValue `false`
109- * @see {@link https://lib.rsbuild.dev /config/lib/auto-external#autoexternaldevdependencies }
109+ * @see {@link https://rslib.rs /config/lib/auto-external#autoexternaldevdependencies }
110110 */
111111 devDependencies ?: boolean ;
112112 } ;
@@ -120,37 +120,37 @@ export type BannerAndFooter = {
120120export type Shims = {
121121 /**
122122 * Configure the shims for CommonJS output.
123- * @see {@link https://lib.rsbuild.dev /config/lib/shims#shimscjs }
123+ * @see {@link https://rslib.rs /config/lib/shims#shimscjs }
124124 */
125125 cjs ?: {
126126 /**
127127 * Whether to inject shims for the `import.meta.url` in CommonJS output.
128128 * @defaultValue `true`
129- * @see {@link https://lib.rsbuild.dev /config/lib/shims#shimscjsimportmetaurl }
129+ * @see {@link https://rslib.rs /config/lib/shims#shimscjsimportmetaurl }
130130 */
131131 'import.meta.url' ?: boolean ;
132132 } ;
133133 /**
134134 * Configure the shims for ESM output.
135- * @see {@link https://lib.rsbuild.dev /config/lib/shims#shimsesm }
135+ * @see {@link https://rslib.rs /config/lib/shims#shimsesm }
136136 */
137137 esm ?: {
138138 /**
139139 * Whether to inject shims for the global `__filename` of CommonJS in ESM output.
140140 * @defaultValue `false`
141- * @see {@link https://lib.rsbuild.dev /config/lib/shims#shimsesm__filename }
141+ * @see {@link https://rslib.rs /config/lib/shims#shimsesm__filename }
142142 */
143143 __filename ?: boolean ;
144144 /**
145145 * Whether to inject shims for the global `__dirname` of CommonJS in ESM output.
146146 * @defaultValue `false`
147- * @see {@link https://lib.rsbuild.dev /config/lib/shims#shimsesm__dirname }
147+ * @see {@link https://rslib.rs /config/lib/shims#shimsesm__dirname }
148148 */
149149 __dirname ?: boolean ;
150150 /**
151151 * Whether to inject shims for the global `require` of CommonJS in ESM output.
152152 * @defaultValue `false`
153- * @see {@link https://lib.rsbuild.dev /config/lib/shims#shimsesmrequire }
153+ * @see {@link https://rslib.rs /config/lib/shims#shimsesmrequire }
154154 */
155155 require ?: boolean ;
156156 } ;
@@ -210,61 +210,61 @@ export interface LibConfig extends EnvironmentConfig {
210210 /**
211211 * The unique identifier of the library.
212212 * @defaultValue `undefined`
213- * @see {@link https://lib.rsbuild.dev /config/lib/id }
213+ * @see {@link https://rslib.rs /config/lib/id }
214214 */
215215 id ?: string ;
216216 /**
217217 * Output format for the generated JavaScript files.
218218 * @defaultValue `'esm'`
219- * @see {@link https://lib.rsbuild.dev /config/lib/format }
219+ * @see {@link https://rslib.rs /config/lib/format }
220220 */
221221 format ?: Format ;
222222 /**
223223 * Whether to bundle the library.
224224 * @defaultValue `true`
225- * @see {@link https://lib.rsbuild.dev /config/lib/bundle }
225+ * @see {@link https://rslib.rs /config/lib/bundle }
226226 */
227227 bundle ?: boolean ;
228228 /**
229229 * Whether to automatically set the file extension based on {@link format} option in the JavaScript output files.
230230 * @defaultValue `true`
231- * @see {@link https://lib.rsbuild.dev /config/lib/auto-extension }
231+ * @see {@link https://rslib.rs /config/lib/auto-extension }
232232 */
233233 autoExtension ?: boolean ;
234234 /**
235235 * Whether to automatically externalize dependencies of different dependency types and do not bundle them.
236236 * @defaultValue `true` when {@link format} is `cjs` or `esm`, `false` when {@link format} is `umd` or `mf`.
237- * @see {@link https://lib.rsbuild.dev /config/lib/auto-external }
237+ * @see {@link https://rslib.rs /config/lib/auto-external }
238238 */
239239 autoExternal ?: AutoExternal ;
240240 /**
241241 * Configure the redirect of the import paths, applicable {@link bundle} is set to `false`.
242242 * @defaultValue `{}`
243- * @see {@link https://lib.rsbuild.dev /config/lib/redirect}
243+ * @see {@link https://rslib.rs /config/lib/redirect}
244244 */
245245 redirect ?: Redirect ;
246246 /**
247247 * Configure the syntax to which JavaScript and CSS will be downgraded.
248248 * @defaultValue `'esnext'`
249- * @see {@link https://lib.rsbuild.dev /config/lib/syntax }
249+ * @see {@link https://rslib.rs /config/lib/syntax }
250250 */
251251 syntax ?: Syntax ;
252252 /**
253253 * Whether to import SWC helper functions from `@swc/helpers` instead of inlining them.
254254 * @defaultValue `false`
255- * @see {@link https://lib.rsbuild.dev /config/lib/external-helpers }
255+ * @see {@link https://rslib.rs /config/lib/external-helpers }
256256 */
257257 externalHelpers ?: boolean ;
258258 /**
259259 * Inject content into the top of each JavaScript, CSS or declaration file.
260260 * @defaultValue `{}`
261- * @see {@link https://lib.rsbuild.dev /config/lib/banner}
261+ * @see {@link https://rslib.rs /config/lib/banner}
262262 */
263263 banner ?: BannerAndFooter ;
264264 /**
265265 * Inject content into the bottom of each JavaScript, CSS or declaration file.
266266 * @defaultValue `{}`
267- * @see {@link https://lib.rsbuild.dev /config/lib/footer}
267+ * @see {@link https://rslib.rs /config/lib/footer}
268268 */
269269 footer ?: BannerAndFooter ;
270270 /**
@@ -283,25 +283,25 @@ export interface LibConfig extends EnvironmentConfig {
283283 * },
284284 * };
285285 * ```
286- * @see {@link https://lib.rsbuild.dev /config/lib/shims }
286+ * @see {@link https://rslib.rs /config/lib/shims }
287287 */
288288 shims ?: Shims ;
289289 /**
290290 * Configure the generation of the TypeScript declaration files.
291291 * @defaultValue `false`
292- * @see {@link https://lib.rsbuild.dev /config/lib/dts }
292+ * @see {@link https://rslib.rs /config/lib/dts }
293293 */
294294 dts ?: Dts ;
295295 /**
296296 * The export name of the UMD bundle.
297297 * @defaultValue `undefined`
298- * @see {@link https://lib.rsbuild.dev /config/lib/umd-name }
298+ * @see {@link https://rslib.rs /config/lib/umd-name }
299299 */
300300 umdName ?: Rspack . LibraryName ;
301301 /**
302302 * The base directory of the output files.
303303 * @defaultValue `undefined`
304- * @see {@link https://lib.rsbuild.dev /config/lib/out-base }
304+ * @see {@link https://rslib.rs /config/lib/out-base }
305305 */
306306 outBase ?: string ;
307307 /**
@@ -328,7 +328,7 @@ interface RslibOutputConfig extends OutputConfig {
328328 * When minify is not specified, Rslib will use a sane default for minify options.
329329 * The default options will only perform dead code elimination and unused code elimination.
330330 *
331- * @see {@link https://lib.rsbuild.dev /config/rsbuild/output#outputminify }
331+ * @see {@link https://rslib.rs /config/rsbuild/output#outputminify }
332332 */
333333 minify ?: OutputConfig [ 'minify' ] ;
334334}
0 commit comments