forked from anc95/ChatGPT-CodeReview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.ts
42 lines (41 loc) · 926 Bytes
/
rollup.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
36
37
38
39
40
41
42
import esbuild from 'rollup-plugin-esbuild';
import { defineConfig } from 'rollup';
import commonjs from '@rollup/plugin-commonjs';
import nodeResolve from '@rollup/plugin-node-resolve';
export default defineConfig([
{
input: 'middleware.ts',
output: {
file: 'dist/middleware.js',
format: 'esm',
inlineDynamicImports: true,
},
plugins: [esbuild(), commonjs(), nodeResolve()],
},
{
input: 'src/bot.ts',
output: {
dir: 'dist/lib/',
format: 'esm',
inlineDynamicImports: false,
},
plugins: [esbuild({ include: 'src/*.ts' })],
},
{
input: 'src/index.ts',
output: {
dir: 'dist/',
format: 'esm',
inlineDynamicImports: false,
},
plugins: [esbuild()],
},
{
input: ['api/github/webhooks/index.ts'],
output: {
dir: 'dist/api/github/webhooks',
format: 'esm',
},
plugins: [esbuild()],
},
]);