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; 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", () => {