mirror of
https://github.com/foomo/ui.git
synced 2025-10-16 12:45:34 +00:00
fix: add dependency exclude
This commit is contained in:
parent
014f3a18ce
commit
18720e6a90
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@foomo/ui",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist",
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user