From d186a06edf8a0b2a77433e17b25c8586be8b5120 Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Fri, 23 Nov 2018 22:46:42 +0800 Subject: [PATCH] update bundle format and add sourcemap --- rollup.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index e40d7537..942cc62f 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -14,7 +14,7 @@ export default [ output: [ { name: 'rrwebSnapshot', - format: 'umd', + format: 'iife', file: pkg.unpkg, }, ], @@ -25,8 +25,9 @@ export default [ output: [ { name: 'rrwebSnapshot', - format: 'umd', + format: 'iife', file: toMinPath(pkg.unpkg), + sourcemap: true, }, ], }, @@ -59,6 +60,7 @@ export default [ { format: 'esm', file: toMinPath(pkg.module), + sourcemap: true, }, ], },