Instrument the code at development build for istanbul (#347)
[poolifier.git] / rollup.config.mjs
index 77d516bd6e483da4c5cac72391b3a05cb1bb4087..f301a0871b09c655762b1ceee7495a9fa2af8dc3 100644 (file)
@@ -3,6 +3,7 @@ import analyze from 'rollup-plugin-analyzer'
 import { terser } from 'rollup-plugin-terser'
 import del from 'rollup-plugin-delete'
 import command from 'rollup-plugin-command'
+import istanbul from 'rollup-plugin-istanbul'
 
 const isDevelopmentBuild = process.env.BUILD === 'development'
 const isAnalyze = process.env.ANALYZE
@@ -25,6 +26,7 @@ export default {
         ? 'tsconfig.development.json'
         : 'tsconfig.json'
     }),
+    isDevelopmentBuild && istanbul(),
     del({
       targets: ['lib/*']
     }),