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.
build.target
1 parent 18f0f90 commit 3c93fdeCopy full SHA for 3c93fde
1 file changed
packages/vite/src/node/plugins/worker.ts
@@ -189,6 +189,7 @@ async function bundleWorkerEntry(
189
await workerEnvironment.init()
190
191
const chunkMetadataMap = new ChunkMetadataMap()
192
+ const workerBuildTarget = workerEnvironment.config.build.target
193
const bundle = await rolldown({
194
...rollupOptions,
195
input,
@@ -198,6 +199,10 @@ async function bundleWorkerEntry(
198
199
onLog(level, log) {
200
onRollupLog(level, log, workerEnvironment)
201
},
202
+ transform: {
203
+ target: workerBuildTarget === false ? undefined : workerBuildTarget,
204
+ ...rollupOptions.transform,
205
+ },
206
// TODO: remove this and enable rolldown's CSS support later
207
moduleTypes: {
208
'.css': 'js',
0 commit comments