X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.js;h=3900559c0e016c2a482f2a7b56a5acc450402b5e;hb=0489b5c8f32c870892e22705a1ceef3cbad6676a;hp=0b5dad848878c3c75c5ca64a15af8a602bc99485;hpb=a6b3c6c313f1c0314a1445ed630cac85edf55b2c;p=e-mobility-charging-stations-simulator.git diff --git a/rollup.config.js b/rollup.config.js index 0b5dad84..3900559c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -4,7 +4,7 @@ import del from 'rollup-plugin-delete'; import istanbul from 'rollup-plugin-istanbul'; import json from '@rollup/plugin-json'; import { terser } from 'rollup-plugin-terser'; -import typescript from 'rollup-plugin-typescript2'; +import ts from 'rollup-plugin-ts'; const isDevelopmentBuild = process.env.BUILD === 'development'; @@ -20,11 +20,12 @@ export default { preserveModulesRoot: 'src', ...!isDevelopmentBuild && { plugins: [terser({ numWorkers: 2 })] } }, - external: ['basic-ftp', 'chalk', 'crypto', 'fs', '@mikro-orm/core', 'mongodb', 'path', 'perf_hooks', 'poolifier', 'reflect-metadata', 'tar', 'url', 'uuid', 'ws', 'winston-daily-rotate-file', 'winston/lib/winston/transports', 'winston', 'worker_threads'], + external: ['basic-ftp', 'chalk', 'crypto', 'fs', '@mikro-orm/core', '@mikro-orm/reflection', 'mongodb', 'path', 'perf_hooks', 'poolifier', 'proper-lockfile', 'reflect-metadata', 'tar', 'url', 'uuid', 'ws', 'winston-daily-rotate-file', 'winston/lib/winston/transports', 'winston', 'worker_threads'], plugins: [ json(), - typescript({ - tsconfig: 'tsconfig.json' + ts({ + tsconfig: 'tsconfig.json', + browserslist: false }), isDevelopmentBuild && istanbul(), del({