From 39c6b4c06501ab20855d830f06343a5aa7eae872 Mon Sep 17 00:00:00 2001 From: burakgormek Date: Tue, 9 Dec 2025 15:16:40 +0300 Subject: [PATCH] fix: resolve external css imports --- packages/uniwind/src/css/themes.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/uniwind/src/css/themes.ts b/packages/uniwind/src/css/themes.ts index adbb1616..41a73797 100644 --- a/packages/uniwind/src/css/themes.ts +++ b/packages/uniwind/src/css/themes.ts @@ -2,7 +2,6 @@ import { compile } from '@tailwindcss/node' import fs from 'fs' import { transform } from 'lightningcss' import path from 'path' -import { name } from '../../package.json' import { Logger } from '../metro/logger' const readFileSafe = (filePath: string) => { @@ -15,8 +14,6 @@ const readFileSafe = (filePath: string) => { const isExcludedDependency = (url: string) => [ - url === 'tailwindcss', - url === name, url.includes('node_modules/tailwindcss'), url.includes('node_modules/@tailwindcss'), url.includes('node_modules/uniwind'), @@ -80,7 +77,7 @@ export const generateCSSForThemes = async (themes: Array, input: string) .map(dependency => `@import "${dependency.url}";`).join('\n') await compile(importsCSS, { - base: path.dirname(cssPath), + base: path.resolve(path.dirname(cssPath)), onDependency: dependency => { if (isExcludedDependency(dependency)) { return