+/* eslint-disable n/no-unpublished-import */
import json from '@rollup/plugin-json';
import terser from '@rollup/plugin-terser';
import typescript from '@rollup/plugin-typescript';
entryFileNames: '[name].mjs',
...(!isDevelopmentBuild && { plugins: [terser({ maxWorkers: 2 })] }),
},
- {
- dir: 'dist',
- format: 'cjs',
- exports: 'auto',
- sourcemap: true,
- preserveModules: true,
- preserveModulesRoot: 'src',
- entryFileNames: '[name].cjs',
- ...(!isDevelopmentBuild && { plugins: [terser({ maxWorkers: 2 })] }),
- },
],
external: [
'@mikro-orm/core',
'node:util',
'node:worker_threads',
'poolifier',
- 'proper-lockfile',
'tar',
'winston',
'winston-daily-rotate-file',