We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7cb269 commit 2cc8283Copy full SHA for 2cc8283
1 file changed
packages/uniwind/src/metro/metro-transformer.ts
@@ -30,7 +30,7 @@ export const transform = async (
30
data: Buffer,
31
options: JsTransformOptions,
32
) => {
33
- const isCss = options.type !== 'asset' && path.join(process.cwd(), config.uniwind.cssEntryFile) === path.join(process.cwd(), filePath)
+ const isCss = options.type !== 'asset' && path.join(process.cwd(), config.uniwind.cssEntryFile) === path.join(projectRoot, filePath)
34
35
if (filePath.endsWith('/components/web/metro-injected.js')) {
36
const cssPath = path.join(process.cwd(), config.uniwind.cssEntryFile)
0 commit comments