Skip to content

Commit

Permalink
Merge pull request #415 from cspotcode/feature/fix-tsconfig-extend-al…
Browse files Browse the repository at this point in the history
…lowjs-bug

Fix bug when "extend"ing a tsconfig that specifies "allowJs"
  • Loading branch information
johnnyreilly authored Dec 14, 2016
2 parents c3d707c + ae0ab04 commit 5bb2a4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ts-loader works very well in combination with [babel](https://babeljs.io/) and [

### Contributing

This is your TypeScript loader! We want you to help make it even better. Please feel free to contribute; see the [contributer's guide](CONTRIBUTING.md) to get started.
This is your TypeScript loader! We want you to help make it even better. Please feel free to contribute; see the [contributor's guide](CONTRIBUTING.md) to get started.

### Installation

Expand Down
2 changes: 1 addition & 1 deletion src/instances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function ensureTypeScriptInstance(
}

// if allowJs is set then we should accept js(x) files
const scriptRegex = configFile.config.compilerOptions.allowJs && loaderOptions.entryFileIsJs
const scriptRegex = configParseResult.options.allowJs && loaderOptions.entryFileIsJs
? /\.tsx?$|\.jsx?$/i
: /\.tsx?$/i;

Expand Down

0 comments on commit 5bb2a4a

Please sign in to comment.