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';
preserveModulesRoot: 'src',
...!isDevelopmentBuild && { plugins: [terser({ numWorkers: 2 })] }
},
- external: ['basic-ftp', 'chalk', 'crypto', 'perf_hooks', 'fs', 'path', 'poolifier', '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({