Skip to content

Commit 53f041e

Browse files
refactor: code
1 parent f17f368 commit 53f041e

File tree

3 files changed

+357
-349
lines changed

3 files changed

+357
-349
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A CSS Modules transform to extract local aliases for inline imports",
55
"main": "src/index.js",
66
"engines": {
7-
"node": ">= 10.13.0 || >= 12.13.0 || >= 14"
7+
"node": "^10 || ^12 || >= 14"
88
},
99
"files": [
1010
"src"
@@ -37,14 +37,14 @@
3737
"homepage": "https://github.com/css-modules/postcss-modules-extract-imports",
3838
"devDependencies": {
3939
"coveralls": "^3.1.0",
40-
"eslint": "^7.9.0",
40+
"eslint": "^7.10.0",
4141
"husky": "^4.3.0",
42-
"jest": "^26.4.2",
42+
"jest": "^26.5.2",
4343
"lint-staged": "^10.4.0",
44-
"postcss": "^8.0.7",
44+
"postcss": "^8.1.1",
4545
"prettier": "^2.1.2"
4646
},
4747
"peerDependencies": {
48-
"postcss": "^8.0.0"
48+
"postcss": "^8.1.0"
4949
}
5050
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports = (options = {}) => {
6363

6464
return {
6565
postcssPlugin: "postcss-modules-extract-imports",
66-
RootExit(root, postcss) {
66+
OnceExit(root, postcss) {
6767
const graph = {};
6868
const visited = {};
6969

0 commit comments

Comments
 (0)