Skip to content

Commit

Permalink
fix: remove useless await
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy committed Jun 26, 2024
1 parent f2e1a79 commit b514c10
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/core/src/provider/initConfigs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type {
InspectConfigOptions,
MergedEnvironmentConfig,
ModifyEnvironmentConfigUtils,
NormalizedEnvironmentConfig,
PluginManager,
RsbuildEntry,
Expand Down Expand Up @@ -42,8 +43,8 @@ async function modifyEnvironmentConfig(
logger.debug(`modify Rsbuild environment(${name}) config`);
const [modified] = await context.hooks.modifyEnvironmentConfig.call(config, {
name,
// @ts-expect-error
mergeEnvironmentConfig: mergeRsbuildConfig<MergedEnvironmentConfig>,
mergeEnvironmentConfig:
mergeRsbuildConfig<MergedEnvironmentConfig> as ModifyEnvironmentConfigUtils['mergeEnvironmentConfig'],
});

logger.debug(`modify Rsbuild environment(${name}) config done`);
Expand Down Expand Up @@ -144,7 +145,7 @@ export async function initRsbuildConfig({
server,
} = normalizeBaseConfig;

for await (const [name, config] of Object.entries(mergedEnvironments)) {
for (const [name, config] of Object.entries(mergedEnvironments)) {
const environmentConfig = await modifyEnvironmentConfig(
context,
config,
Expand Down

0 comments on commit b514c10

Please sign in to comment.