Skip to content

Commit dfaa6f8

Browse files
pre create output dir
1 parent bccce17 commit dfaa6f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

patches/@greenwood+plugin-css-modules+0.33.0-alpha.6.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/node_modules/@greenwood/plugin-css-modules/src/index.js b/node_modules/@greenwood/plugin-css-modules/src/index.js
2-
index e2f5928..952d928 100644
2+
index e2f5928..075a350 100644
33
--- a/node_modules/@greenwood/plugin-css-modules/src/index.js
44
+++ b/node_modules/@greenwood/plugin-css-modules/src/index.js
55
@@ -4,6 +4,7 @@
@@ -148,7 +148,7 @@ index e2f5928..952d928 100644
148148
+ !fs.existsSync(new URL(`./${MODULES_MAP_DIR_NAME}/`, scratchDir))
149149
) {
150150
- fs.writeFileSync(new URL(`./${MODULES_MAP_FILENAME}`, scratchDir), JSON.stringify({}));
151-
+ fs.mkdirSync(new URL(`./${MODULES_MAP_DIR_NAME}/`, scratchDir));
151+
+ fs.mkdirSync(new URL(`./${MODULES_MAP_DIR_NAME}/`, scratchDir), { recursive: true });
152152
}
153153
+ // if (
154154
+ // fs.existsSync(scratchDir) &&

0 commit comments

Comments
 (0)