Skip to content

Commit

Permalink
fix: use OnceExit (instead of Once) which runs after all children…
Browse files Browse the repository at this point in the history
  • Loading branch information
chsuh committed Nov 17, 2021
1 parent 53271d0 commit e99b310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const plugin = (options = {}) => {

return {
postcssPlugin: "postcss-modules-scope",
Once(root, { rule }) {
OnceExit(root, { rule }) {
const exports = Object.create(null);

function exportScopedName(name, rawName) {
Expand Down

0 comments on commit e99b310

Please sign in to comment.