Skip to content

Commit

Permalink
fix: watching configuration (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Nov 26, 2021
1 parent f460c22 commit 7f165b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ async function loadConfig(loaderContext, config, postcssOptions) {
}

loaderContext.addBuildDependency(result.filepath);
loaderContext.addDependency(result.filepath);

if (result.isEmpty) {
return result;
Expand Down
1 change: 1 addition & 0 deletions test/config-autoload.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const testDirectory = path.resolve(__dirname, "fixtures", "config-autoload");
const loaderContext = {
fs,
addBuildDependency: () => true,
addDependency: () => true,
};

describe("autoload config", () => {
Expand Down

0 comments on commit 7f165b4

Please sign in to comment.