Closed s-eiermann closed 1 year ago
Is this new with TS 5.0?
Actually, NVM - I figured out the problem. It was due this line in webpack config:
watch: process.env.WEBPACK_WATCH === 1 ? true : false,
fix:
watch: process.env.WEBPACK_WATCH == 1 ? true : false,
Hence the watcher was not running.
I pushed the fix to the repo, for reference. Thanks!
Expected Behaviour
Webpack re-compiles the bundle app.js file
Actual Behaviour
Webpack does only recompile the individual js files, but not the final bundle app.js file.
Steps to Reproduce the Problem
In the referenced reprex you can run the watcher via:
npm run client:watch
, then edit the ts file inclient/src/ts/index.tx
and see that it updates theclient/src/js/index.js
respectively, but it does not compile the final bundle inclient/dist/app.js
.Location of a Minimal Repository that Demonstrates the Issue.
https://github.com/s-eiermann/webpack-example