oxc icon indicating copy to clipboard operation
oxc copied to clipboard

transformer: add es `target`

Open Boshen opened this issue 1 year ago • 3 comments

Babel does not have target, but we need it to make oxc-transform compatible with tsc / esbuild.

Boshen avatar Oct 28 '24 14:10 Boshen

Just to clarify, is target a browserslist query? Or something else?

overlookmotel avatar Oct 28 '24 14:10 overlookmotel

Just to clarify, is target a browserslist query? Or something else?

Babel targets https://babel.dev/docs/options#targets

ESBuild target https://esbuild.github.io/api/#target

tsc target https://www.typescriptlang.org/tsconfig/target.html

Boshen avatar Oct 28 '24 15:10 Boshen

Agree! When we have a target option, we can solve https://github.com/oxc-project/oxc/pull/6023.

Dunqing avatar Oct 28 '24 15:10 Dunqing