Skip to content

Commit

Permalink
fix(vite): fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Anber committed Feb 6, 2023
1 parent 5f5426b commit 47307a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default function linaria({
);
const cssRelativePath = path
.relative(config.root, cssFilename)
.replaceAll(path.win32.sep, path.posix.sep);
.replace(/\\/g, path.posix.sep);
const cssId = `/${cssRelativePath}`;

if (sourceMap && result.cssSourceMapText) {
Expand Down

0 comments on commit 47307a6

Please sign in to comment.