-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
36 lines (35 loc) · 935 Bytes
/
rollup.config.js
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
import path from 'path';
import typescript from 'rollup-plugin-typescript';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import autoExternal from 'rollup-plugin-auto-external';
import json from 'rollup-plugin-json'
import globals from 'rollup-plugin-node-globals';
export default {
input: path.resolve(__dirname, './src/server.ts'),
output: {
file: './index.js',
format: 'cjs'
},
external: [
],
plugins: [
typescript(),
autoExternal({
dependencies: true, // false
packagePath: path.resolve('./package.json'),
peerDependencies: false
}),
globals(),
resolve({
jsnext: true,
main: true
}),
commonjs({
include: '../node_modules/**',
sourceMap: false
}),
//terser(),
json(),
],
}