-
-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript 2.3 checkJs support #518
Comments
Are you using TypeScript 2.3 in your package.json? |
I am. I checked with |
I created a small test case: OliverJAsh/webpack-ts-check-js@c2a5d4e In this example, the entry file is JS, which depends on a TS file. Transpilation works, but I'm expecting to see typecheck errors ( I also tried changing the entry file to TS, depending on a JS file. However that also failed to show any typecheck errors. |
After looking through the source code, and debugging the loader as well, I think I have identified what can be changed to better support JS errors in https://github.com/TypeStrong/ts-loader/blob/master/src/after-compile.ts#L129: Instead of filtering for only |
@schmuli - sounds promising! We welcome PRs 👍 😄 |
I am trying to use the new
checkJs
flag in TypeScript 2.3. When I runtsc
standalone, I get errors from my JS files, however when I runts-loader
, I get no errors from my JS files.Any idea what might be causing this?
The text was updated successfully, but these errors were encountered: