Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "@lambdacurry/forms",
"version": "0.22.6",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/lambda-curry/forms.git"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
Expand Down
10 changes: 9 additions & 1 deletion packages/components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ export default defineConfig({
input: Object.fromEntries(
glob
.sync('src/**/*.{ts,tsx}', {
ignore: ['src/**/*.d.ts'],
ignore: [
'src/**/*.d.ts',
'src/**/core/types.ts', // Exclude type-only files to avoid empty chunks
],
})
.filter((file) => {
// Exclude files that are likely type-only (e.g., files that only export types)
// This prevents empty chunk warnings
return !file.includes('/core/types');
})
.map((file) => [
// The name of the entry point
Expand Down
Loading