You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is specific to target or other options, but it's easiest to reproduce this way. I'm also not 100% sure that it's this transformer that's not using the target from an extended config, so I apologize if this wastes anyone's time, but I think I've narrowed it down.
For example, you may have a base config that looks like
{
"compilerOptions": { "target": "es5" }
}
Then your tsconfig.json as { "extends": "./tsconfig.base.json" }.
If you use import { default as X } from 'lib'; ... <X /> then this gets transpiled to <lib_1['default'] /> which is an error.
If you update tsconfig.json to use targetdirectly then it works as expected (<lib_1.default />).
The text was updated successfully, but these errors were encountered:
I'm not sure if this is specific to
target
or other options, but it's easiest to reproduce this way. I'm also not 100% sure that it's this transformer that's not using the target from an extended config, so I apologize if this wastes anyone's time, but I think I've narrowed it down.For example, you may have a base config that looks like
Then your
tsconfig.json
as{ "extends": "./tsconfig.base.json" }
.If you use
import { default as X } from 'lib'; ... <X />
then this gets transpiled to<lib_1['default'] />
which is an error.If you update
tsconfig.json
to usetarget
directly then it works as expected (<lib_1.default />
).The text was updated successfully, but these errors were encountered: