ds300 / ds300/react-native-typescript-transformer

`target` is not used in an inherited TypeScript config.

Open
#49 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
656
Forks
47
PR merge metrics
No merged PRs in 30d

Description

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

```json
{
"compilerOptions": { "target": "es5" }
}
```

Then your `tsconfig.json` as `{ "extends": "./tsconfig.base.json" }`.

If you use `import { default as X } from 'lib'; ... ` then this gets transpiled to `` which is an error.

If you update `tsconfig.json` to use `target` _directly_ then it works as expected (``).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.