Skip to content

Commit 2cc8283

Browse files
authored
fix: css file transforming for special setups (#483)
1 parent a7cb269 commit 2cc8283

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
@@ -30,7 +30,7 @@ export const transform = async (
3030
data: Buffer,
3131
options: JsTransformOptions,
3232
) => {
33-
const isCss = options.type !== 'asset' && path.join(process.cwd(), config.uniwind.cssEntryFile) === path.join(process.cwd(), filePath)
33+
const isCss = options.type !== 'asset' && path.join(process.cwd(), config.uniwind.cssEntryFile) === path.join(projectRoot, filePath)
3434

3535
if (filePath.endsWith('/components/web/metro-injected.js')) {
3636
const cssPath = path.join(process.cwd(), config.uniwind.cssEntryFile)

0 commit comments

Comments
 (0)