Skip to content

Commit

Permalink
refactor: use this.addBuildDependency for tracking configurations (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Feb 2, 2021
1 parent 1d48781 commit 21008cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function loadConfig(loaderContext, config, postcssOptions) {
return {};
}

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

if (result.isEmpty) {
return result;
Expand Down
2 changes: 1 addition & 1 deletion test/config-autoload.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const testDirectory = path.resolve(__dirname, "fixtures", "config-autoload");

const loaderContext = {
fs,
addDependency: () => true,
addBuildDependency: () => true,
};

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

0 comments on commit 21008cc

Please sign in to comment.