-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
rollup.config.js
37 lines (34 loc) · 902 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
37
import typescript from 'rollup-plugin-typescript2';
import multi from '@rollup/plugin-multi-entry';
import commonjs from "@rollup/plugin-commonjs";
import nodeResolve from "@rollup/plugin-node-resolve";
import json from "@rollup/plugin-json";
import terser from "@rollup/plugin-terser";
const dev = false;
export default {
input: [
'src/card/WindRoseCard.ts',
'src/util/Log.ts'
],
cache: false,
output: {
format: 'es',
name: 'windroseCardBundle',
treeshake: false,
file: 'build/windrose-card.js'
},
plugins: [
multi(),
nodeResolve({
browser: true,
preserveSymlinks: true
}),
commonjs({
include: 'node_modules/**',
ignoreGlobal: true,
strictRequires: true
}),
typescript(),
json(),
!dev && terser()],
};