Skip to content

Commit

Permalink
fix: plugins can't be pased to the worker
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Jan 7, 2022
1 parent d49f661 commit b26ea64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Expand Up @@ -152,6 +152,7 @@ export async function build(_options: Options) {
...options, // functions cannot be cloned
esbuildPlugins: undefined,
esbuildOptions: undefined,
plugins: undefined,
},
})
worker.on('message', (data) => {
Expand Down Expand Up @@ -221,7 +222,9 @@ export async function build(_options: Options) {
logger,
buildDependencies,
}).catch((error) => {
previousBuildDependencies.forEach(v => buildDependencies.add(v))
previousBuildDependencies.forEach((v) =>
buildDependencies.add(v)
)
throw error
})
}),
Expand Down

1 comment on commit b26ea64

@vercel
Copy link

@vercel vercel bot commented on b26ea64 Jan 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.