You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using configuration mentioned in Faster Builds section of Readme.md (with fork-ts-checker-webpack-plugin and transpileOnly set to true), webpack is unable to watch .ts files those do not produce any .js output (e.g. with interface definition only).
Consider following fancy-interface.ts file:
export interface FancyInterface {
test(): void;
}
If you run webpack --watch, modifications in this file are ignored, as webpack is not triggering rebuild. With transpileOnly: false everything works like expected.
I've made a small repo based on "fork-ts-checker" example to isolate the problem. Steps to reproduce:
When using configuration mentioned in Faster Builds section of Readme.md (with
fork-ts-checker-webpack-plugin
andtranspileOnly
set totrue
), webpack is unable to watch.ts
files those do not produce any.js
output (e.g. with interface definition only).Consider following
fancy-interface.ts
file:If you run
webpack --watch
, modifications in this file are ignored, as webpack is not triggering rebuild. WithtranspileOnly: false
everything works like expected.I've made a small repo based on "fork-ts-checker" example to isolate the problem. Steps to reproduce:
git clone https://github.com/pamelus/ts-loader-transpileOnly-watch
cd ts-loader-transpileOnly-watch && npm install
npm run start
src/fancy-interface.ts
. Observe that webpack is not triggering rebuild.I don't know either it is intentional or not, but I think it deserves at least small mention in Readme.md. Or a fix.
Test case created using:
The text was updated successfully, but these errors were encountered: