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",
|
"name": "@foomo/ui",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|||||||
@ -6,11 +6,13 @@ import tailwindcss from "@tailwindcss/vite";
|
|||||||
import { glob } from "glob";
|
import { glob } from "glob";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import { storybookTest } from "@storybook/addon-vitest/vitest-plugin";
|
import { storybookTest } from "@storybook/addon-vitest/vitest-plugin";
|
||||||
|
import pkg from "./package.json";
|
||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
const dirname =
|
const dirname =
|
||||||
typeof __dirname !== "undefined"
|
typeof __dirname !== "undefined"
|
||||||
? __dirname
|
? __dirname
|
||||||
: path.dirname(fileURLToPath(import.meta.url));
|
: path.dirname(fileURLToPath(import.meta.url));
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react(), tailwindcss()],
|
plugins: [react(), tailwindcss()],
|
||||||
resolve: {
|
resolve: {
|
||||||
@ -63,17 +65,8 @@ export default defineConfig({
|
|||||||
cssCodeSplit: false,
|
cssCodeSplit: false,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: [
|
external: [
|
||||||
"react",
|
...Object.keys(pkg.dependencies || {}),
|
||||||
"react-dom",
|
...Object.keys(pkg.peerDependencies || {}),
|
||||||
"react/jsx-runtime",
|
|
||||||
"clsx",
|
|
||||||
"tailwind-merge",
|
|
||||||
"class-variance-authority",
|
|
||||||
/@radix-ui\/.*/,
|
|
||||||
"lodash",
|
|
||||||
"lucide-react",
|
|
||||||
"date-fns",
|
|
||||||
"react-day-picker",
|
|
||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
preserveModules: true,
|
preserveModules: true,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user