Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

fix: stop generating .d.ts on TS compilation #919

Merged
merged 1 commit into from
Jun 4, 2019

Conversation

rosen-vladimirov
Copy link
Contributor

In case declaration is set to true in tsconfig.json file, the webpack watcher goes in indefinite loop as each change of .ts file leads to generation of new .d.ts files which are also detected by webpack.
To prevent this, ensure declaration is set to false in all compilation cases.

PR Checklist

What is the current behavior?

Check related issue.

What is the new behavior?

Transpilation is working correctly.

Fixes issue #823

In case `declaration` is set to true in `tsconfig.json` file, the webpack watcher goes in indefinite loop as each change of .ts file leads to generation of new .d.ts files which are also detected by webpack.
To prevent this, ensure declaration is set to false in all compilation cases.
@rosen-vladimirov
Copy link
Contributor Author

Merging with red tests as we know this PR is not causing them.

@rosen-vladimirov rosen-vladimirov merged commit ccbf8de into release Jun 4, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-indefinite-loop branch June 4, 2019 05:38
Fatme pushed a commit that referenced this pull request Jun 6, 2019
* release: cut the 0.24.0 release (#916)

chore: manually update CHANGELOG for release from 0.22.0 to 0.24.0

* fix: stop generating .d.ts on TS compilation (#919)

In case `declaration` is set to true in `tsconfig.json` file, the webpack watcher goes in indefinite loop as each change of .ts file leads to generation of new .d.ts files which are also detected by webpack.
To prevent this, ensure declaration is set to false in all compilation cases.

* fix: move the type check to a child process in order to make it faster in bigger apps and unify the hmr and no-hmr experience. (#926)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants