X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.mjs;h=394de0e274f7cca046131921aae821adadc4c10b;hb=480fecf6f69bc342772aa161c4452e2b544e12a4;hp=57a3190eef0211519bcfbe5892695b99dd0696c4;hpb=97613dc6750d81a7e5ef5c8ff4a754b2e382cc00;p=e-mobility-charging-stations-simulator.git diff --git a/rollup.config.mjs b/rollup.config.mjs index 57a3190e..394de0e2 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -2,7 +2,6 @@ import json from '@rollup/plugin-json'; import analyze from 'rollup-plugin-analyzer'; import copy from 'rollup-plugin-copy'; import del from 'rollup-plugin-delete'; -import istanbul from 'rollup-plugin-istanbul'; import { terser } from 'rollup-plugin-terser'; import ts from 'rollup-plugin-ts'; @@ -13,7 +12,7 @@ export default { output: [ { dir: 'dist', - format: 'es', + format: 'esm', exports: 'auto', sourcemap: true, preserveModules: true, @@ -36,30 +35,31 @@ export default { '@mikro-orm/core', '@mikro-orm/reflection', 'ajv', - 'ajv-draft-04', 'ajv-formats', - 'async_hooks', 'basic-ftp', 'chalk', - 'crypto', - 'fs', - 'http', 'http-status-codes', + 'just-clone', + 'just-merge', 'mnemonist/lru-map-with-delete', 'moment', 'mongodb', - 'path', - 'perf_hooks', + 'node:async_hooks', + 'node:crypto', + 'node:fs', + 'node:http', + 'node:path', + 'node:perf_hooks', + 'node:stream', + 'node:url', + 'node:util', + 'node:worker_threads', 'poolifier', 'proper-lockfile', - 'reflect-metadata', 'tar', - 'url', - 'uuid', 'winston', 'winston-daily-rotate-file', - 'winston/lib/winston/transports/index.js', - 'worker_threads', + 'winston/lib/winston/transports', 'ws', ], plugins: [ @@ -68,7 +68,6 @@ export default { tsconfig: 'tsconfig.json', browserslist: false, }), - isDevelopmentBuild && istanbul(), del({ targets: [ 'dist/*',