Skip to content

Commit 1b395a5

Browse files
authored
chore: make derived colors build work on windows (#342)
1 parent 4f5b67d commit 1b395a5

File tree

1 file changed

+2
-1
lines changed
  • packages/main/lib/postcss-process-derived-colors

1 file changed

+2
-1
lines changed

packages/main/lib/postcss-process-derived-colors/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ module.exports = postcss.plugin('process derived colors', function (opts) {
122122
opts = opts || {};
123123

124124
return async function (root) {
125-
const theme = root.source.input.from.match(/themes-next\/(\w+)\//)[1];
125+
const match = root.source.input.from.match(/themes-next\/(\w+)\//) || root.source.input.from.match(/themes-next\\(\w+)\\/);
126+
const theme = match[1];
126127

127128
const prevPlugins = [...pluginQueue];
128129

0 commit comments

Comments
 (0)