https://github.com/dominictobias/ts-loader-declaration-bug
ts-loader declarations stop generating on style changes bug
https://github.com/dominictobias/ts-loader-declaration-bug
Last synced: 27 days ago
JSON representation
ts-loader declarations stop generating on style changes bug
- Host: GitHub
- URL: https://github.com/dominictobias/ts-loader-declaration-bug
- Owner: dominictobias
- Created: 2020-06-04T22:32:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T07:56:12.000Z (over 2 years ago)
- Last Synced: 2025-03-19T23:36:12.200Z (about 1 month ago)
- Language: JavaScript
- Size: 634 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Expected Behaviour
Continues to emit declaration files
### Actual Behaviour
Stops emitting declaration files if ANY modification is made to a .SCSS (sass) file, declaration directory structure is still there without any declarations.
If an edit is then made to a particular module it generates declarations for those files and it's imports but still missing from the the rest of the project.
Edit: This frequently happens when modifying TS files too, although in that case only some go missing (ones which don't have a direct dependency on the edited file).
### Steps to Reproduce the Problem
```
yarn install
yarn start
```Note how `dist/types` is generated
Now make a change to the `.scss` file and note all declaration files except for the directory structure are removed.
### Location of a Minimal Repository that Demonstrates the Issue.
https://github.com/DominicTobias/ts-loader-declaration-bug
**Edit:** This appears to be caused when using `clean-webpack-plugin` in conjunction with `ts-loader`. So a quick fix is to stop using it.