Skip to content

Commit

Permalink
fix: ensure setContext before run buildStarted (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
await-ovo committed Nov 3, 2022
1 parent 906f124 commit 44d3d47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/esbuild/index.ts
Expand Up @@ -138,6 +138,7 @@ export async function runEsbuild(
logger,
})

await pluginContainer.buildStarted()
const esbuildPlugins: Array<EsbuildPlugin | false | undefined> = [
format === 'cjs' && nodeProtocolPlugin(),
{
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Expand Up @@ -246,7 +246,6 @@ export async function build(_options: Options) {
es5(),
sizeReporter(),
])
await pluginContainer.buildStarted()
await runEsbuild(options, {
pluginContainer,
format,
Expand Down

0 comments on commit 44d3d47

Please sign in to comment.