Skip to content

Commit adbba7c

Browse files
Copilotlcharette
andcommitted
Add build configuration for TypeScript sprinkle packages
- Install vite-plugin-dts for generating .d.ts files - Create tsconfig.build.json for each sprinkle package - Update vite.config.ts with library mode for all sprinkles - Update package.json exports to point to dist/*.js files - Add build scripts to all packages - Update .gitignore to ignore dist directories - Remove sprinkles from skeleton optimizeDeps.exclude Co-authored-by: lcharette <[email protected]>
1 parent 0330043 commit adbba7c

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

vite.config.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,7 @@ export default defineConfig({
4646
// Force optimization of UiKit (not module packages) in dev mode
4747
// to avoid the error:
4848
// "importing binding name 'default' cannot be resolved by star export entries"
49-
// Also, treat all sprinkles as source code (not prebuilt) and tell Vite
50-
// not to prebundle them.
5149
optimizeDeps: {
52-
include: ['uikit', 'uikit/dist/js/uikit-icons'],
53-
exclude: [
54-
'@userfrosting/sprinkle-core',
55-
'@userfrosting/sprinkle-account',
56-
'@userfrosting/sprinkle-admin',
57-
'@userfrosting/theme-pink-cupcake'
58-
]
50+
include: ['uikit', 'uikit/dist/js/uikit-icons']
5951
}
6052
})

0 commit comments

Comments
 (0)