Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Fix for allowJs not compiling .js files: #39 #58

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zenorbi
Copy link
Contributor

@zenorbi zenorbi commented Jan 6, 2017

Fixes #39

@sjbarag
Copy link

sjbarag commented May 15, 2017

Hiya, @jrieken! Any chance of this getting merged into upstream soon? I'd love to be able to use gulp-tsb for JS downleveling as part of my TypeScript build chain :)

@BurtHarris
Copy link

BurtHarris commented Jul 30, 2017

I've tested this PR on my project, it fixes issue #39 when installed from my repo.
@jrieken how about merging it sometime soon?

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;

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you!

Copy link
Owner

@jrieken jrieken left a 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants