Skip to content

Commit e338442

Browse files
Normalize import path for emitted css files by rollup-plugin (#710)
Co-authored-by: mattcompiles <[email protected]>
1 parent 3fc5040 commit e338442

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/kind-zoos-cover.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@vanilla-extract/rollup-plugin': patch
3+
---
4+
5+
Normalize import path for emitted css files

packages/rollup-plugin/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import {
77
getSourceFromVirtualCssFile,
88
virtualCssFileFilter,
99
} from '@vanilla-extract/integration';
10-
import { relative, normalize, dirname } from 'path';
10+
import { posix } from 'path';
11+
12+
const { relative, normalize, dirname } = posix;
1113

1214
interface Options {
1315
identifiers?: IdentifierOption;

0 commit comments

Comments
 (0)