Skip to content

Commit

Permalink
try tree shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
mrados7 committed Sep 21, 2024
1 parent 930558c commit fdb0d15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mrados7/shadcn-components",
"private": false,
"version": "0.0.14",
"version": "0.0.15",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -24,6 +24,7 @@
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"sideEffects": false,
"dependencies": {
"@radix-ui/react-alert-dialog": "^1.1.1",
"@radix-ui/react-slot": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.app.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"root":["./src/main.ts","./src/vite-env.d.ts","./src/components/ui/alert-dialog.tsx","./src/components/ui/button.tsx","./src/lib/utils.ts"],"version":"5.6.2"}
{"root":["./src/main.ts","./src/vite-env.d.ts","./src/components/ui/alert-dialog.tsx","./src/components/ui/badge.tsx","./src/components/ui/button.tsx","./src/components/ui/carousel.tsx","./src/lib/utils.ts"],"version":"5.6.2"}
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export default defineConfig({
external: ['react', 'react/jsx-runtime', 'tailwindcss'],
output: {
assetFileNames: 'assets/[name][extname]',
entryFileNames: '[name].js'
entryFileNames: '[name].js',
preserveModules: true
},
}
},
Expand Down

0 comments on commit fdb0d15

Please sign in to comment.