-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ts
More file actions
42 lines (41 loc) · 861 Bytes
/
Copy pathbuild.ts
File metadata and controls
42 lines (41 loc) · 861 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
35
36
37
38
39
40
41
42
import { build } from 'esbuild'
import tabularFilesizeGzip from 'tabular-filesize-gzip'
;(async () => {
await build({
entryPoints: ['./src/index.ts'],
bundle: true,
format: 'esm',
minify: true,
sourcemap: 'external',
outfile: './dist/index.js',
external: [
'solid-js',
'solid-js/web',
'solid-js/store',
'solid-use',
'@solidjs/router',
'solid-start-node',
'vitest/config',
'solid-start/vite',
'solid-start/server',
'solid-start/session',
],
})
console.log(
tabularFilesizeGzip([
{
title: 'Bundle Size',
groups: [
{
title: 'Source',
files: 'dist/index.js',
},
{
title: 'SourceMap',
files: 'dist/index.js.map',
},
],
},
]),
)
})()