feat: switch the bundled code to ESM only
[e-mobility-charging-stations-simulator.git] / rollup.config.mjs
index 80f99ca861c7c6b71933abe3b26a815d7e70daa7..0b43e8f8d3677921ab5fc3d8054e48dbaaac2382 100644 (file)
@@ -1,3 +1,4 @@
+/* eslint-disable n/no-unpublished-import */
 import json from '@rollup/plugin-json';
 import terser from '@rollup/plugin-terser';
 import typescript from '@rollup/plugin-typescript';
@@ -21,16 +22,6 @@ export default {
       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',