tsconfig target option is ignored -- use browserslist for Babel instead #951
Labels
kind: question
This is a usage or similar question
kind: support
Asking for support with something or a specific use case
problem: no repro
No reproduction was provided (and have not tried to repro without one)
problem: stale
Issue has not been responded to in some time
solution: intended behavior
This is not a bug and is expected behavior
Current Behavior
Modern code is not getting transpiled to the
target
specified intsconfig.json
.Expected behavior
It should respect the
target
option and transpile to that.Suggested solution(s)
I dunno, if
target
is undiserable or whatever, maybe respectbrowserslist
inpackage.json
? Because that it also doesn't do. Otherwise it should just pick uptarget
intsconfig.json
. Or I guess it should pick up something, anything, in order to make transpilation happen to a target of my choosing.Additional context
Currently it does only very moderate transpilation, for instance
a ?? b
is transpiled, but{ ...a, ...b }
is not. Even settingtarget
to a ridiculouses3
doesn't transpile any more (or less) than setting it toesnext
. There should be some difference between the two, wouldn't you say?So it is transpiling to some kind of target, but which one?... I don't know, but not my target, that's for sure.
Your environment
Why are these scripts never seeing my Firefox browser? 🤨
Anyway, maybe it also helps to see my
tsconfig.json
:To the question "why do you need this?" I can answer simply: because I need to test stuff in this library on old browsers. Maybe libraries should not be transpiled. Maybe they should be. But that is an opinion not quite relevant to this issue. Just wanted to get that off the tables.
The text was updated successfully, but these errors were encountered: