mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 04:02:15 +01:00
externalize npm packages in ui package
This commit is contained in:
@@ -17,7 +17,27 @@ export default defineConfig({
|
||||
rollupOptions: {
|
||||
// make sure to externalize deps that shouldn't be bundled
|
||||
// into your library
|
||||
external: ['vue', 'lucide-vue-next'],
|
||||
external: [
|
||||
'vue',
|
||||
'lucide-vue-next',
|
||||
'@floating-ui/vue',
|
||||
'@heroicons/vue',
|
||||
/^@heroicons\/vue\/.*/,
|
||||
'@vueuse/core',
|
||||
'@vueuse/integrations',
|
||||
/^@vueuse\/integrations\/.*/,
|
||||
'focus-trap',
|
||||
'chroma-js',
|
||||
'class-variance-authority',
|
||||
'clsx',
|
||||
'dayjs',
|
||||
/^dayjs\/.*/,
|
||||
'parse-duration',
|
||||
'@internationalized/date',
|
||||
'radix-vue',
|
||||
'reka-ui',
|
||||
'tailwind-merge',
|
||||
],
|
||||
output: {
|
||||
// Provide global variables to use in the UMD build
|
||||
// for externalized deps
|
||||
|
||||
Reference in New Issue
Block a user