-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtsup.config.ts
More file actions
34 lines (33 loc) · 941 Bytes
/
tsup.config.ts
File metadata and controls
34 lines (33 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { solidPlugin } from 'esbuild-plugin-solid';
import { defineConfig } from 'tsup';
export default defineConfig((options) => {
return {
entry: [
// framework
'src/index.ts',
'src/preset.ts',
'src/node/index.ts',
// renderer
'src/renderer/index.ts',
'src/renderer/preview.ts',
'src/renderer/preset.ts',
'src/renderer/entry-preview.ts',
'src/renderer/entry-preview-argtypes.ts',
'src/renderer/entry-preview-docs.ts',
],
format: ['esm'],
outDir: 'dist',
clean: true,
dts: {
resolve: true,
},
tsconfig: 'tsconfig.json',
external: [
'@storybook/builder-vite',
],
jsx: 'preserve',
sourcemap: true,
treeshake: !options.watch,
esbuildPlugins: [solidPlugin()],
};
});