Skip to content

Commit

Permalink
fix(postcss): handle Windows path resolution for windstyle module
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Nov 26, 2024
1 parent 2cdd587 commit c7060d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/app/builder/postcss.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import postcssCustomMedia from 'postcss-custom-media';

import {createRequire} from 'module';
const require = createRequire(import.meta.url); // ESM way to access require
const windstylePath = require.resolve('@alwatr/windstyle').replace('/dist/main.cjs', '/');
const windstylePath = require.resolve('@alwatr/windstyle')
.replace('/dist/main.cjs', '/')
.replace('\\dist\\main.cjs', '\\');

const basePath = 'src/css/';

Expand Down

0 comments on commit c7060d8

Please sign in to comment.