Skip to content

Commit e99b310

Browse files
committed
fix: use OnceExit (instead of Once) which runs after all children are processed
https://postcss.org/api/#plugin-onceexit
1 parent 53271d0 commit e99b310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const plugin = (options = {}) => {
8888

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

9494
function exportScopedName(name, rawName) {

0 commit comments

Comments
 (0)