Skip to content

Commit d6772c4

Browse files
committed
perf: use built-in target option
1 parent 7a9f121 commit d6772c4

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/index.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -227,16 +227,7 @@ async function getBuildOptions(
227227
plugins.push(Unused.rolldown(unused === true ? {} : unused))
228228
}
229229
if (target) {
230-
plugins.push(
231-
transformPlugin({
232-
include: /\.[cm]?[jt]sx?$/,
233-
exclude: /\.d\.[cm]?ts$/,
234-
transformOptions: {
235-
target,
236-
},
237-
}),
238-
RuntimeHelperCheckPlugin(target),
239-
)
230+
plugins.push(RuntimeHelperCheckPlugin(target))
240231
}
241232
plugins.push(ShebangPlugin(cwd, name, isMultiFormat))
242233
}
@@ -296,6 +287,7 @@ async function getBuildOptions(
296287
name: config.globalName,
297288
sourcemap,
298289
dir: outDir,
290+
target,
299291
minify,
300292
entryFileNames,
301293
chunkFileNames,

0 commit comments

Comments
 (0)