Skip to content

Commit

Permalink
fix: compatibility with updated cosmiconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jan 16, 2024
1 parent 3d43d8b commit f97f7ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ async function loadConfig(loaderContext, config, postcssOptions) {
loaders[".ts"] = tsLoader;

const explorer = cosmiconfig(moduleName, {
searchStrategy: "global",
searchPlaces,
loaders,
});
Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/postcssOptions.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ exports[`"postcssOptions" option should work with the "config" options with "pac
exports[`"postcssOptions" option should work with the "config" options with "package.json" configuration: warnings 1`] = `[]`;

exports[`"postcssOptions" option should work with the "config" options with "true" value: css 1`] = `
"a { color: black }
"a { color: rgba(0, 0, 0, 1.0) }
.foo {
float: right;
Expand Down Expand Up @@ -1468,7 +1468,7 @@ exports[`"postcssOptions" option should work with the "syntax" option with "Stri
exports[`"postcssOptions" option should work with the "syntax" option with "String" value: warnings 1`] = `[]`;
exports[`"postcssOptions" option should work without the specified values in the "postcssOptions" option: css 1`] = `
"a { color: black }
"a { color: rgba(0, 0, 0, 1.0) }
.foo {
float: right;
Expand Down

0 comments on commit f97f7ce

Please sign in to comment.