-
Notifications
You must be signed in to change notification settings - Fork 19
Fix for allowJs not compiling .js files: #39 #58
base: master
Are you sure you want to change the base?
Conversation
Hiya, @jrieken! Any chance of this getting merged into upstream soon? I'd love to be able to use |
src/builder.ts
Outdated
@@ -467,11 +467,12 @@ class LanguageServiceHost implements ts.LanguageServiceHost { | |||
getScriptFileNames(): string[] { | |||
const result: string[] = []; | |||
const libLocation = this.getDefaultLibLocation(); | |||
const filter = this._settings.allowJs ? /\.?(ts|tsx|js)/i : /\.?(ts|tsx)/i; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should .jsx files be included?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A hundret years later... This module is somewhat in archive mode as it serves our needs as is. Anyways, stumbled over this PR and it lgtm. Merging tho you will likely not need this module anymore since tsc itself has been catching up on the perf front.
Fixes #39