Skip to content

Commit 307dab8

Browse files
authored
fix: read absolute cssPath instead of relative one in metro-transformer (#485)
1 parent 2cc8283 commit 307dab8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/uniwind/src/metro/metro-transformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const transform = async (
7575
themes: config.uniwind.themes,
7676
dtsPath: config.uniwind.dtsFile,
7777
})
78-
const css = fs.readFileSync(filePath, 'utf-8')
78+
const css = fs.readFileSync(cssPath, 'utf-8')
7979
const platform = getPlatform()
8080
const virtualCode = await compileVirtual({
8181
css,

0 commit comments

Comments
 (0)