Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy committed Jun 19, 2024
1 parent eb40ebd commit c0f5049
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions packages/core/src/initPlugins.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { join } from 'node:path';
import type {
NormalizedEnvironmentConfig,
GetRsbuildConfig,
NormalizedEnvironmentConfig,
PluginManager,
RsbuildPluginAPI,
RspackChain,
Expand Down Expand Up @@ -77,9 +77,8 @@ export function getPluginAPI({
);
}
return config;
} else {
return context.normalizedConfig;
}
return context.normalizedConfig;
}
throw new Error(
'Cannot access normalized config until modifyRsbuildConfig is called.',
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/plugins/entry.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
type NormalizedEnvironmentConfig,
type RsbuildEntry,
type RsbuildTarget,
castArray,
color,
type NormalizedEnvironmentConfig,
} from '@rsbuild/shared';
import type { EntryDescription } from '@rspack/core';
import { createVirtualModule } from '../helpers';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/provider/initConfigs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {
NormalizedEnvironmentConfig,
InspectConfigOptions,
NormalizedEnvironmentConfig,
PluginManager,
RspackConfig,
} from '@rsbuild/shared';
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/types/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import type {
import type { ChainIdentifier } from '../chain';
import type { RspackChain } from '../chain';
import type {
NormalizedEnvironmentConfig,
ModifyRspackConfigUtils,
NormalizedConfig,
NormalizedEnvironmentConfig,
RsbuildConfig,
} from './config';
import type { RsbuildContext } from './context';
Expand Down

0 comments on commit c0f5049

Please sign in to comment.