fix: add dependency exclude

This commit is contained in:
Wlad Meixner 2025-08-18 14:38:19 +02:00
parent 014f3a18ce
commit 18720e6a90
No known key found for this signature in database
2 changed files with 5 additions and 12 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@foomo/ui",
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"files": [
"dist",

View File

@ -6,11 +6,13 @@ import tailwindcss from "@tailwindcss/vite";
import { glob } from "glob";
import { fileURLToPath } from "node:url";
import { storybookTest } from "@storybook/addon-vitest/vitest-plugin";
import pkg from "./package.json";
// https://vite.dev/config/
const dirname =
typeof __dirname !== "undefined"
? __dirname
: path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
@ -63,17 +65,8 @@ export default defineConfig({
cssCodeSplit: false,
rollupOptions: {
external: [
"react",
"react-dom",
"react/jsx-runtime",
"clsx",
"tailwind-merge",
"class-variance-authority",
/@radix-ui\/.*/,
"lodash",
"lucide-react",
"date-fns",
"react-day-picker",
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.peerDependencies || {}),
],
output: {
preserveModules: true,