Skip to content

Commit cf5326d

Browse files
fix: add config file as build dependency (#1611)
* fix: add config file as build dependency * chore: update meta
1 parent 5fbfb5c commit cf5326d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 9.4.3
4+
* [Bug fix: add config file as build dependency](https://github.com/TypeStrong/ts-loader/pull/1611) - thanks @alexander-akait
5+
36
## 9.4.2
47
* [Bug fix: Use custom transformer when building solution references](https://github.com/TypeStrong/ts-loader/pull/1550) [#1025] - thanks @feosuna1
58

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-loader",
3-
"version": "9.4.2",
3+
"version": "9.4.3",
44
"description": "TypeScript loader for webpack",
55
"main": "index.js",
66
"types": "dist",

src/instances.ts

+5
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ function successfulTypeScriptInstance(
147147
}
148148

149149
const { configFilePath, configFile } = configFileAndPath;
150+
151+
if (configFilePath) {
152+
loader.addBuildDependency(configFilePath);
153+
}
154+
150155
const filePathKeyMapper = createFilePathKeyMapper(compiler, loaderOptions);
151156
if (configFilePath && loaderOptions.projectReferences) {
152157
const configFileKey = filePathKeyMapper(configFilePath);

0 commit comments

Comments
 (0)