build: cleanup rollup configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 13 Jun 2023 19:44:28 +0000 (21:44 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 13 Jun 2023 19:44:28 +0000 (21:44 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
rollup.config.mjs

index b5c0b285b77b8daa31ab63e4cd19f5152e688825..1410f161af83887ede02a8f98eb6bdcec7d35738 100644 (file)
@@ -17,9 +17,9 @@ export default {
   output: [
     {
       format: 'cjs',
-      sourcemap: !!isDevelopmentBuild,
       ...(isDevelopmentBuild && {
         dir: 'lib',
+        sourcemap: true,
         preserveModules: true,
         preserveModulesRoot: 'src'
       }),
@@ -30,9 +30,9 @@ export default {
     },
     {
       format: 'esm',
-      sourcemap: !!isDevelopmentBuild,
       ...(isDevelopmentBuild && {
         dir: 'lib',
+        sourcemap: true,
         entryFileNames: '[name].mjs',
         preserveModules: true,
         preserveModulesRoot: 'src'