Skip to content

Commit

Permalink
fix: add config file as build dependency (#1611)
Browse files Browse the repository at this point in the history
* fix: add config file as build dependency

* chore: update meta
  • Loading branch information
alexander-akait authored May 23, 2023
1 parent 5fbfb5c commit cf5326d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 9.4.3
* [Bug fix: add config file as build dependency](https://github.com/TypeStrong/ts-loader/pull/1611) - thanks @alexander-akait

## 9.4.2
* [Bug fix: Use custom transformer when building solution references](https://github.com/TypeStrong/ts-loader/pull/1550) [#1025] - thanks @feosuna1

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": "9.4.2",
"version": "9.4.3",
"description": "TypeScript loader for webpack",
"main": "index.js",
"types": "dist",
Expand Down
5 changes: 5 additions & 0 deletions src/instances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ function successfulTypeScriptInstance(
}

const { configFilePath, configFile } = configFileAndPath;

if (configFilePath) {
loader.addBuildDependency(configFilePath);
}

const filePathKeyMapper = createFilePathKeyMapper(compiler, loaderOptions);
if (configFilePath && loaderOptions.projectReferences) {
const configFileKey = filePathKeyMapper(configFilePath);
Expand Down

0 comments on commit cf5326d

Please sign in to comment.