]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
build: emit sourcemaps (#10568)
authorDan Onoshko <danon0404@gmail.com>
Sun, 7 Aug 2022 17:23:35 +0000 (21:23 +0400)
committerGitHub <noreply@github.com>
Sun, 7 Aug 2022 17:23:35 +0000 (13:23 -0400)
rollup.config.js

index de558e2958f2dcb1438781ebd5c1d4aef8a4bdef..9741212607d7a3f39f1643da68a4b437165c7ff8 100644 (file)
@@ -32,6 +32,7 @@ export default [
       file: 'dist/chart.umd.js',
       format: 'umd',
       indent: false,
+      sourcemap: true,
     },
   },
 
@@ -48,7 +49,6 @@ export default [
       resolve(),
       cleanup({
         comments: ['some', /__PURE__/],
-        sourcemap: true
       }),
     ],
     output: {
@@ -58,6 +58,7 @@ export default [
       banner,
       format: 'esm',
       indent: false,
+      sourcemap: true,
     },
   }
 ];