Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 1b25d3e

Browse files
committed
1 parent 7efc1d2 commit 1b25d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function buildSwcTransformOpts(swcOptions: (Options & { experimental?: unknown }
107107
// eslint-disable-next-line @typescript-eslint/no-unused-vars
108108
const { experimental, ...computedSwcOptions } = swcOptions || (getOptionsFromSwrc() as Options & { experimental?: unknown })
109109

110-
if (!computedSwcOptions.jsc?.target) {
110+
if (!computedSwcOptions.env && !computedSwcOptions.jsc?.target) {
111111
set(
112112
computedSwcOptions,
113113
'jsc.target',

0 commit comments

Comments
 (0)