File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -1357,14 +1357,14 @@ export type OutputStructure = 'flat' | 'nested';
13571357/**
13581358 * custom properties
13591359 * e.g. { name: 'viewport' content: 'width=500, initial-scale=1' }
1360- * * /
1360+ */
13611361export type MetaAttrs = { [ attrName : string ] : string | boolean } ;
13621362
13631363export type MetaOptions = {
13641364 /**
13651365 * name content pair
13661366 * e.g. { viewport: 'width=device-width, initial-scale=1, shrink-to-fit=no' }`
1367- * * /
1367+ */
13681368 [ name : string ] : string | false | MetaAttrs ;
13691369} ;
13701370
@@ -1886,7 +1886,7 @@ export type AllowedEnvironmentDevKeys =
18861886
18871887/**
18881888 * The Rsbuild config to run in the specified environment.
1889- * * /
1889+ */
18901890export interface EnvironmentConfig {
18911891 /**
18921892 * Options for local development.
@@ -1934,7 +1934,7 @@ export type LogLevel = 'info' | 'warn' | 'error' | 'silent';
19341934
19351935/**
19361936 * The Rsbuild config.
1937- * * /
1937+ */
19381938export interface RsbuildConfig extends EnvironmentConfig {
19391939 /**
19401940 * Specify the build mode for Rsbuild, as each mode has different default behavior and optimizations.
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ export type RsbuildContext = {
2828 * // ...
2929 * });
3030 * await rsbuild.startDevServer();
31- * console.log(rsbuild.context.devServer); // { hostname: 'localhost', port: 3000, https: false }
31+ * console.log(rsbuild.context.devServer);
32+ * // { hostname: 'localhost', port: 3000, https: false }
3233 * }
3334 * ```
3435 */
@@ -82,9 +83,9 @@ export type InternalContext = RsbuildContext & {
8283 normalizedConfig ?: NormalizedConfig ;
8384 /**
8485 * Get the plugin API.
85- *
86- * When environment is undefined, the global plugin API is returned, which can be used in all environments.
87- * * /
86+ * When environment is undefined, the global plugin API is returned, which
87+ * can be used in all environments.
88+ */
8889 getPluginAPI ?: ( environment ?: string ) => RsbuildPluginAPI ;
8990 /** The environment context. */
9091 environments : Record < string , EnvironmentContext > ;
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export type ModifyWebpackChainUtils = ModifyChainUtils & {
154154 CHAIN_ID : ChainIdentifier ;
155155 /**
156156 * @deprecated Use target instead.
157- * * /
157+ */
158158 name : string ;
159159 /**
160160 * @deprecated Use HtmlPlugin instead.
You can’t perform that action at this time.
0 commit comments