Skip to content

Commit

Permalink
fix: add some deps as external (FuelLabs#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
leocourbassier authored and raghukapur9 committed Sep 21, 2024
1 parent 468917a commit 88f7f31
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 289 deletions.
12 changes: 6 additions & 6 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"typings": "./dist/theme/tailwind-preset.d.ts"
},
"./styles.css": "./dist/styles.css"
},
"files": [
"dist"
]
}
},
"files": [
"dist"
],
"scripts": {
"build:lib": "tsup --dts",
"build:preview": "storybook build -o ../app-explorer/public/ui",
Expand Down Expand Up @@ -81,7 +81,8 @@
"tailwind-variants": "0.1.20",
"tailwindcss-animate": "1.0.7",
"tailwindcss-radix": "3.0.3",
"tailwindcss-themer": "4.0.0"
"tailwindcss-themer": "4.0.0",
"tailwindcss": "3.4.4"
},
"devDependencies": {
"@chialab/esbuild-plugin-meta-url": "0.18.0",
Expand All @@ -107,7 +108,6 @@
"postcss-import": "16.0.0",
"storybook": "^8.0.8",
"storybook-addon-theme": "workspace:*",
"tailwindcss": "3.4.4",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"typescript": "5.4.5",
"vite": "^5.1.3",
Expand Down
3 changes: 3 additions & 0 deletions packages/ui/tsup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const defConfig = {
options.banner = {
js: "'use client'",
};

/* This is needed to not get any errors from dynamic requiring */
options.external = ['react', 'react-dom', 'tailwindcss'];
},
};

Expand Down
Loading

0 comments on commit 88f7f31

Please sign in to comment.