File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @vanilla-extract/integration ' : patch
3+ ---
4+
5+ Normalize virtual CSS file paths for Windows
Original file line number Diff line number Diff line change 1+ import path from 'path' ;
2+
13import { FileScope , Adapter } from '@vanilla-extract/css' ;
24import { setAdapter } from '@vanilla-extract/css/adapter' ;
35import { transformCss } from '@vanilla-extract/css/transformCss' ;
@@ -89,11 +91,13 @@ export function processVanillaFile({
8991 } ) . join ( '\n' ) ;
9092
9193 const base64Source = Buffer . from ( css , 'utf-8' ) . toString ( 'base64' ) ;
92- const fileName = `${
93- filescope . packageName
94- ? `${ filescope . packageName } /${ filescope . filePath } `
95- : filescope . filePath
96- } .vanilla.css`;
94+ const fileName = path . normalize (
95+ `${
96+ filescope . packageName
97+ ? `${ filescope . packageName } /${ filescope . filePath } `
98+ : filescope . filePath
99+ } .vanilla.css`,
100+ ) ;
97101
98102 const virtualCssFilePath = serializeVirtualCssPath
99103 ? serializeVirtualCssPath ( { fileName, base64Source } )
You can’t perform that action at this time.
0 commit comments