Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Don't overwrite the result of the shared `customSelectorsPromise` when the plugin is used by multiple async postcss calls.
  • Loading branch information
gordody authored and jonathantneal committed Sep 12, 2020
1 parent babc7aa commit cfb004c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default postcss.plugin('postcss-custom-selectors', opts => {

return async root => {
const customProperties = Object.assign(
{},
await customSelectorsPromise,
getCustomSelectors(root, { preserve })
);
Expand Down

0 comments on commit cfb004c

Please sign in to comment.