chore: fix tailwind resolve in extension

This commit is contained in:
Stephen Zhou
2025-05-06 18:27:01 +08:00
parent 65291ff7f0
commit b1fcafa540
+5 -2
View File
@@ -1,7 +1,8 @@
/* @moduleResolution bundler */
import "./tw-css-plugin"
import path, { resolve } from "node:path"
import path, { dirname, resolve } from "node:path"
import { fileURLToPath } from "node:url"
import { getIconCollections, iconsPlugin } from "@egoist/tailwindcss-icons"
import { cleanupSVG, importDirectorySync, isEmptyColor, parseColors, runSVGO } from "@iconify/tools"
@@ -12,7 +13,9 @@ import type { Config } from "tailwindcss/types/config"
import { withUIKit } from "tailwindcss-uikit-colors/src/macos/tailwind"
import { workspaceRootSync } from "workspace-root"
const workspaceRoot = workspaceRootSync()
const _dirname =
typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url))
const workspaceRoot = workspaceRootSync(_dirname)
const twConfig = {
darkMode: ["class", '[data-theme="dark"]'],
content: [],