Commit | Line | Data |
---|---|---|
44b07a21 JB |
1 | import del from 'rollup-plugin-delete'; |
2 | import ts from '@wessberg/rollup-plugin-ts'; | |
3 | ||
4 | export default { | |
5 | input: ['src/start.ts', 'src/charging-station/StationWorker.ts'], | |
6 | output: { | |
7 | dir: 'dist', | |
8 | format: 'cjs', | |
9 | exports: 'auto', | |
10 | sourcemap: true, | |
11 | preserveModules: true, | |
12 | preserveModulesRoot: 'src' | |
13 | }, | |
14 | external: ['crypto', 'perf_hooks', 'fs', 'poolifier', 'uuid', 'ws', 'winston', 'winston-daily-rotate-file', 'worker_threads'], | |
15 | plugins: [ | |
16 | ts({ | |
17 | tsconfig: 'tsconfig.json' | |
18 | }), | |
19 | del({ | |
20 | targets: 'dist/*' | |
21 | }) | |
22 | ] | |
23 | }; |