Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v8.0.18
* [Perf: Optimize fileExists callback path](https://github.com/TypeStrong/ts-loader/issues/1266) - thanks @berickson1

## v8.0.17
* [Included correct webpack source location in emitted errors](https://github.com/TypeStrong/ts-loader/issues/1199) - thanks @lorenzodallavecchia

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-loader",
"version": "8.0.17",
"version": "8.0.18",
"description": "TypeScript loader for webpack",
"main": "index.js",
"types": "dist",
Expand Down
12 changes: 8 additions & 4 deletions src/servicesHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,14 @@ export function makeSolutionBuilderHost(
scriptRegex,
loader,
instance,
fileName =>
!!instance.files.has(filePathKeyMapper(fileName)) ||
!!instance.otherFiles.get(filePathKeyMapper(fileName)) ||
compiler.sys.fileExists(fileName),
fileName => {
const filePathKey = filePathKeyMapper(fileName);
return (
instance.files.has(filePathKey) ||
instance.otherFiles.has(filePathKey) ||
compiler.sys.fileExists(fileName)
);
},
/*enableFileCaching*/ true
);

Expand Down