Skip to content

Commit

Permalink
Upgrading to work with newer dependencies and postcss 8+
Browse files Browse the repository at this point in the history
  • Loading branch information
patorpey committed Mar 21, 2021
1 parent 6046afc commit 2a01f23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = (opts = {}) => {

return {
postcssPlugin: "postcss-easy-import",
Once: postcssImport(opts).Once
...postcssImport(opts)
}
};

Expand Down
5 changes: 4 additions & 1 deletion lib/resolve-glob.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ module.exports = function resolveGlob(id, base, opts) {
return acc;
}, [], paths);

return globby(patterns)
// Replace backslashes with forward slashes to handle Windows paths after
// breaking change in recent versions of underlying dependency micromatch.
// This does prevent the escaping of special characters in paths.
return globby(patterns.map(f => f.replace(/\\/g, "/")))
.then(files => {
return flow(
// Allows a file through if it has a prefix. If it doesn't have
Expand Down

0 comments on commit 2a01f23

Please sign in to comment.