feat: migrate Modal Popover and Tooltip with shared overlay foundation
This commit is contained in:
@@ -2,16 +2,33 @@ import { defineConfig } from "vite";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import { fileURLToPath, URL } from "node:url";
|
||||
export default defineConfig({
|
||||
export default defineConfig(({ command }) => ({
|
||||
plugins: [vue(), tailwindcss()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@heroui-vue/components": fileURLToPath(
|
||||
new URL("../../packages/vue/src/index.ts", import.meta.url),
|
||||
),
|
||||
"@heroui-vue/styles": fileURLToPath(
|
||||
new URL("../../packages/styles/src/index.ts", import.meta.url),
|
||||
),
|
||||
},
|
||||
alias: [
|
||||
...(command === "serve"
|
||||
? [
|
||||
{
|
||||
find: /^@heroui-vue\/styles\/css$/,
|
||||
replacement: fileURLToPath(
|
||||
new URL("../../packages/styles/index.css", import.meta.url),
|
||||
),
|
||||
},
|
||||
]
|
||||
: []),
|
||||
{
|
||||
find: /^@heroui-vue\/components$/,
|
||||
replacement: fileURLToPath(
|
||||
new URL("../../packages/vue/src/index.ts", import.meta.url),
|
||||
),
|
||||
},
|
||||
{
|
||||
find: /^@heroui-vue\/styles$/,
|
||||
replacement: fileURLToPath(
|
||||
new URL("../../packages/styles/src/index.ts", import.meta.url),
|
||||
),
|
||||
},
|
||||
],
|
||||
dedupe: ["vue"],
|
||||
},
|
||||
});
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user