mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
45 lines
1.4 KiB
TypeScript
45 lines
1.4 KiB
TypeScript
import { defineConfig } from 'tsup'
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
index: 'index.tsx',
|
|
'vanilla/index': 'vanilla/index.ts',
|
|
'vanilla/loading/index': 'vanilla/loading/index.tsx',
|
|
'vanilla/error/index': 'vanilla/error/index.tsx',
|
|
'vanilla/empty-state/index': 'vanilla/empty-state/index.tsx',
|
|
'vanilla/skeleton/index': 'vanilla/skeleton/index.tsx',
|
|
'vanilla/access-denied/index': 'vanilla/access-denied/index.tsx',
|
|
'vanilla/notifications/index': 'vanilla/notifications/index.tsx',
|
|
'vanilla/status-indicators/index': 'vanilla/status-indicators/index.tsx',
|
|
'radix/dialogs/KeyboardShortcutsDialog': 'radix/dialogs/KeyboardShortcutsDialog.tsx',
|
|
'cards/index': 'cards/index.ts',
|
|
'forms/index': 'forms/index.ts',
|
|
'layout/index': 'layout/index.ts',
|
|
'navigation/index': 'navigation/index.ts',
|
|
},
|
|
format: ['esm'],
|
|
dts: false, // Disabled due to rootDir issues with icons and fakemui
|
|
splitting: false,
|
|
sourcemap: true,
|
|
clean: true,
|
|
external: [
|
|
'react',
|
|
'react-dom',
|
|
'next',
|
|
'next/link',
|
|
'next/navigation',
|
|
'next/image',
|
|
'@metabuilder/fakemui',
|
|
'@metabuilder/interfaces',
|
|
'@metabuilder/hooks',
|
|
'@metabuilder/hooks-canvas',
|
|
'@metabuilder/utils',
|
|
'@metabuilder/redux-slices',
|
|
'@monaco-editor/react',
|
|
'monaco-editor',
|
|
/^@metabuilder\//,
|
|
/\.scss$/,
|
|
/\.css$/,
|
|
],
|
|
})
|