Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move all extended tsconfig settings to react-app #28

Merged
merged 1 commit into from
Feb 3, 2019

Conversation

ashchan
Copy link
Contributor

@ashchan ashchan commented Feb 3, 2019

Note this might be a temporary workaround.

Reason: CRA automatically updates tsconfig.json and forces isolatedModules: true config. (see facebook/create-react-app#5508)

We have the react app's tsconfig extend our base sdk config, which has "declaration": true set. That couldn't co-exist with isolatedModules.

This has resulted: 1, TypeScript would complain about the config. 2, if we remove isolatedModules CRA adds it back and changes the tsconfig file every time we run the app.

Until we have a more elegant tsconfig setup let have all compiler options in the tsconfig.json file (some of them might be the same to default value but I didn't bother double checking them).

@ashchan ashchan requested a review from Keith-CY February 3, 2019 08:01
@Keith-CY Keith-CY merged commit 7c93580 into develop Feb 3, 2019
@Keith-CY Keith-CY deleted the update-react-tsconfig branch February 3, 2019 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants