Skip to content

Commit 7f165b4

Browse files
fix: watching configuration (#553)
1 parent f460c22 commit 7f165b4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/utils.js

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ async function loadConfig(loaderContext, config, postcssOptions) {
6464
}
6565

6666
loaderContext.addBuildDependency(result.filepath);
67+
loaderContext.addDependency(result.filepath);
6768

6869
if (result.isEmpty) {
6970
return result;

test/config-autoload.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const testDirectory = path.resolve(__dirname, "fixtures", "config-autoload");
88
const loaderContext = {
99
fs,
1010
addBuildDependency: () => true,
11+
addDependency: () => true,
1112
};
1213

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

0 commit comments

Comments
 (0)