forked from oedotme/generouted
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsup.config.ts
More file actions
26 lines (25 loc) · 769 Bytes
/
Copy pathtsup.config.ts
File metadata and controls
26 lines (25 loc) · 769 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
import { defineConfig } from 'tsup'
import { solidPlugin as solid } from 'esbuild-plugin-solid'
export default defineConfig([
{
entry: ['src/core.ts', 'src/index*', 'src/client'],
format: ['esm'],
dts: {
entry: {
core: './node_modules/generouted/dist/core.d.ts',
index: './node_modules/generouted/dist/solid-router.d.ts',
'index-lazy': './node_modules/generouted/dist/solid-router-lazy.d.ts',
'client/index': 'src/client/index.ts',
},
},
external: ['solid-js', 'solid-js/web', '@solidjs/router'],
noExternal: ['generouted'],
esbuildPlugins: [solid()],
},
{
entry: ['src/plugin'],
outDir: 'dist/plugin',
format: ['cjs', 'esm'],
dts: { entry: 'src/plugin/index.ts' },
},
])