generated from Daydreamer-riri/starter-lib
-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.config.ts
34 lines (33 loc) · 929 Bytes
/
build.config.ts
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 path from 'node:path'
import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
entries: [
{ input: 'src/index', name: 'index' },
{ input: 'src/client/single-page', name: 'client/single-page' },
{ input: 'src/client/tanstack', name: 'tanstack' },
{ input: 'src/node/cli', name: 'node/cli' },
{ input: 'src/node', name: 'node' },
{ input: 'src/style-collectors/styled-components', name: 'style-collectors/styled-components' },
],
alias: { '~': path.resolve(__dirname, 'src') },
declaration: true,
clean: true,
externals: [
'react',
'react-dom',
'react-dom/server',
'react-router-dom',
'react-router-dom/server',
'@tanstack/react-router',
'@tanstack/start/client',
'@tanstack/start/server',
'@tanstack/start',
],
rollup: {
emitCJS: true,
inlineDependencies: true,
esbuild: {
jsx: 'automatic',
},
},
})