Skip to content

Commit

Permalink
chore: remove peer dependencies from bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-mesnil committed Jan 15, 2025
1 parent bd5a94a commit 960b92d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "welcome-ui",
"version": "1.0.0-beta.6",
"version": "1.0.0-beta.7",
"description": "Customizable design system with react • styled-components • styled-system and ariakit.",
"files": [
"dist"
Expand Down
17 changes: 16 additions & 1 deletion lib/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,22 @@ export default defineConfig({
name: 'Welcome UI',
},
rollupOptions: {
external: ['react', '@xstyled/styled-components'],
external: [
'react',
'@xstyled/styled-components',
'@juggle/resize-observer',
'@xstyled/styled-components',
'copy-to-clipboard',
'date-fns',
'downshift',
'lottie-light-react',
'match-sorter',
'react-datepicker',
'react-dropzone',
'react-flatten-children',
'react-hot-toast',
'styled-components',
],
output: {
globals: {
react: 'React',
Expand Down

0 comments on commit 960b92d

Please sign in to comment.