From 51503e3b81f26a24c093dba01ffa800a955d8617 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Tue, 2 Feb 2021 17:35:55 +0300 Subject: [PATCH 1/2] refactor: use `this.addBuildDependency` for tracking configurations --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index f4f735d7..e43becf0 100644 --- a/src/utils.js +++ b/src/utils.js @@ -63,7 +63,7 @@ async function loadConfig(loaderContext, config, postcssOptions) { return {}; } - loaderContext.addDependency(result.filepath); + loaderContext.addBuildDependency(result.filepath); if (result.isEmpty) { return result; From 5548587e99c466010117b30beec84bfd3a7b229e Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Tue, 2 Feb 2021 17:44:08 +0300 Subject: [PATCH 2/2] test: fix --- test/config-autoload.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/config-autoload.test.js b/test/config-autoload.test.js index ea98aa68..ff62c74b 100644 --- a/test/config-autoload.test.js +++ b/test/config-autoload.test.js @@ -7,7 +7,7 @@ const testDirectory = path.resolve(__dirname, "fixtures", "config-autoload"); const loaderContext = { fs, - addDependency: () => true, + addBuildDependency: () => true, }; describe("autoload config", () => {