Skip to content

Commit

Permalink
fix(bin): fix extraESBuildConfig resolving to undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Socketlike committed Feb 25, 2024
1 parent 3955a25 commit ad867e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ const extraESBuildConfig = new Promise<(config: esbuild.BuildOptions) => esbuild
(resolve) => {
if (existsSync(extraESBuildPath))
resolve(
import(pathToFileURL(extraESBuildPath).href).then((m) => {
resolve(m.default);
}) as Promise<(config: esbuild.BuildOptions) => esbuild.BuildOptions>,
import(pathToFileURL(extraESBuildPath).href).then((m) => m.default) as Promise<
(config: esbuild.BuildOptions) => esbuild.BuildOptions
>,
);

resolve((config: esbuild.BuildOptions) => config);
Expand Down

0 comments on commit ad867e2

Please sign in to comment.