9a8b5955b315e4bcac6905f4271171ff379ebd82
[e-mobility-charging-stations-simulator.git] / rollup.config.js
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 };