Skip to content

Commit 21008cc

Browse files
refactor: use this.addBuildDependency for tracking configurations (#513)
1 parent 1d48781 commit 21008cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function loadConfig(loaderContext, config, postcssOptions) {
6363
return {};
6464
}
6565

66-
loaderContext.addDependency(result.filepath);
66+
loaderContext.addBuildDependency(result.filepath);
6767

6868
if (result.isEmpty) {
6969
return result;

test/config-autoload.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const testDirectory = path.resolve(__dirname, "fixtures", "config-autoload");
77

88
const loaderContext = {
99
fs,
10-
addDependency: () => true,
10+
addBuildDependency: () => true,
1111
};
1212

1313
describe("autoload config", () => {

0 commit comments

Comments
 (0)