Skip to content

Commit 1291cfa

Browse files
committed
fix
1 parent 0a3066c commit 1291cfa

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

packages/core/src/types/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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+
*/
13611361
export type MetaAttrs = { [attrName: string]: string | boolean };
13621362

13631363
export 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+
*/
18901890
export 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+
*/
19381938
export interface RsbuildConfig extends EnvironmentConfig {
19391939
/**
19401940
* Specify the build mode for Rsbuild, as each mode has different default behavior and optimizations.

packages/core/src/types/context.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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>;

packages/core/src/types/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)