Skip to content

Commit

Permalink
chore: use optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikg committed Apr 13, 2021
1 parent fac226c commit 8de244a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,7 @@ export async function resolveConfig(
)

// call configResolved hooks
await Promise.all(
userPlugins.map((p) => p.configResolved && p.configResolved(resolved))
)
await Promise.all(userPlugins.map((p) => p.configResolved?.(resolved)))

if (process.env.DEBUG) {
debug(`using resolved config: %O`, {
Expand Down

0 comments on commit 8de244a

Please sign in to comment.