-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbundler.config.ts
More file actions
33 lines (32 loc) · 811 Bytes
/
bundler.config.ts
File metadata and controls
33 lines (32 loc) · 811 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
import { defineConfig } from '@hypernym/bundler'
export default defineConfig({
entries: [
{ input: './src/index.ts' },
{
input: './src/index.ts',
output: './dist/index.min.js',
minify: true,
},
{
input: './src/index.ts',
output: './dist/index.iife.js',
format: 'iife',
name: 'Hyperutils',
minify: true,
},
{
input: './src/index.ts',
output: './dist/index.umd.js',
format: 'umd',
name: 'Hyperutils',
minify: true,
},
{ dts: './src/types/index.ts', output: './dist/index.d.ts' },
{
input: './src/fs/index.ts',
externals: [/^node/, /^@/],
paths: [{ find: /^@/, replacement: '../index.js' }],
},
{ dts: './src/types/fs/index.ts', output: './dist/fs/index.d.ts' },
],
})