build: enable source map for all build types
[poolifier.git] / rollup.config.mjs
index 9e8cd65bb0317152141a539de08f8d64c16a2c6c..aac1c8cdd00740db11a5c031b31b14c850049c17 100644 (file)
@@ -41,6 +41,7 @@ export default defineConfig([
         }),
         ...(!isDevelopmentBuild && {
           file: './lib/index.js',
+          sourcemap: true,
           plugins: [terser({ maxWorkers })]
         })
       },
@@ -56,6 +57,7 @@ export default defineConfig([
         }),
         ...(!isDevelopmentBuild && {
           file: './lib/index.mjs',
+          sourcemap: true,
           plugins: [terser({ maxWorkers })]
         })
       }
@@ -72,9 +74,7 @@ export default defineConfig([
     ],
     plugins: [
       typescript({
-        tsconfig: isDevelopmentBuild
-          ? './tsconfig.development.json'
-          : './tsconfig.production.json'
+        tsconfig: './tsconfig.build.json'
       }),
       del({
         targets: ['./lib/*']