forked from aidenybai/million
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.config.ts
35 lines (34 loc) · 741 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
35
import { defineBuildConfig } from 'unbuild';
export default defineBuildConfig({
entries: [
'./packages/million',
'./packages/jsx-runtime',
'./packages/utils',
'./packages/router',
'./packages/html',
'./packages/morph',
'./packages/vite-plugin-million',
'./packages/react',
{
input: './packages/react/exports',
builder: 'mkdist',
outDir: './dist/react',
ext: 'mjs',
format: 'esm',
},
{
input: './packages/react/exports',
builder: 'mkdist',
outDir: './dist/react',
ext: 'cjs',
format: 'cjs',
},
],
externals: ['espree'],
declaration: true,
clean: true,
rollup: {
emitCJS: true,
inlineDependencies: false,
},
});