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

Commit cfb004c

Browse files
gordodyjonathantneal
authored andcommitted
Update index.js
Don't overwrite the result of the shared `customSelectorsPromise` when the plugin is used by multiple async postcss calls.
1 parent babc7aa commit cfb004c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default postcss.plugin('postcss-custom-selectors', opts => {
1919

2020
return async root => {
2121
const customProperties = Object.assign(
22+
{},
2223
await customSelectorsPromise,
2324
getCustomSelectors(root, { preserve })
2425
);

0 commit comments

Comments
 (0)