We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c961ec commit 97d5111Copy full SHA for 97d5111
packages/vite/src/node/build.ts
@@ -467,7 +467,7 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
467
return {
468
pre: [
469
completeSystemWrapPlugin(),
470
- prepareOutDirPlugin(),
+ ...(!config.isWorker ? [prepareOutDirPlugin()] : []),
471
perEnvironmentPlugin('commonjs', (environment) => {
472
const { commonjsOptions } = environment.config.build
473
const usePluginCommonjs =
0 commit comments