From f9b1715c121a1bb3a2411d2d25011365d0e90f1f Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Tue, 16 May 2023 18:32:14 +0300 Subject: [PATCH 1/2] fix: add config file as build dependency --- src/instances.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/instances.ts b/src/instances.ts index f5de00de4..26985e631 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -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); From a1a855402b20b966f80e43acee383cda408e8a2e Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Tue, 23 May 2023 17:39:50 +0300 Subject: [PATCH 2/2] chore: update meta --- CHANGELOG.md | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c6459029..f6d7a7388 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index 143a8ca69..72375d98a 100644 --- a/package.json +++ b/package.json @@ -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",