I found a problem in my app structure and build process using WebPack, TypeScript, and TS-Loader that I thought was caused by TypeScript 2.1.4, but apparently was there the whole time.
You can see all the details from my other post: TypeScript 2.1.4 breaking changes in webpack ts-loader
In short, I have Gulp and WebPack set to an entry point of /client/app.ts which for now has almost nothing in it (certainly nothing referencing /server/) but the TypeScript compilation stage of the WebPack build process is still trying to run on /server (and in my other post, showing a compilation error from the Server folder, when it should only be running from the Client folder).
What am I doing wrong and how can I fix it so it only runs on /client/.ts files, and specifically walk the structure from app.ts?
Here's my repo showing everything I'm working with so far: https://github.com/CmdrShepardsPie/test-ts-app/tree/develop
Thanks
exclude: /server\//
in the loader config – Originativets-loader
andawesome-typescript-loader
. The solution (perhaps slightly inelegant, but easy) is to create an empty .ts file anywhere and specify that as theinput
intsconfig.json
. This way tsc will process the files from the webpack loader and this empty file each time it's invoked, but it'll leave the other files alone. – Mishnah