File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { compile } from '@tailwindcss/node'
22import fs from 'fs'
33import { transform } from 'lightningcss'
44import path from 'path'
5- import { name } from '../../package.json'
65import { Logger } from '../metro/logger'
76
87const readFileSafe = ( filePath : string ) => {
@@ -15,8 +14,6 @@ const readFileSafe = (filePath: string) => {
1514
1615const isExcludedDependency = ( url : string ) =>
1716 [
18- url === 'tailwindcss' ,
19- url === name ,
2017 url . includes ( 'node_modules/tailwindcss' ) ,
2118 url . includes ( 'node_modules/@tailwindcss' ) ,
2219 url . includes ( 'node_modules/uniwind' ) ,
@@ -80,7 +77,7 @@ export const generateCSSForThemes = async (themes: Array<string>, input: string)
8077 . map ( dependency => `@import "${ dependency . url } ";` ) . join ( '\n' )
8178
8279 await compile ( importsCSS , {
83- base : path . dirname ( cssPath ) ,
80+ base : path . resolve ( path . dirname ( cssPath ) ) ,
8481 onDependency : dependency => {
8582 if ( isExcludedDependency ( dependency ) ) {
8683 return
You can’t perform that action at this time.
0 commit comments