From 3e1ef6825edc257801e2ae3439965bf7d8d7d63c Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] add sourcemap for terser bundles --- rollup.config.js | 5 +++++ scripts/repl.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 2d4e504d..00d93532 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -35,6 +35,7 @@ let configs = [ name: 'record', format: 'iife', file: toMinPath(toRecordPath(pkg.unpkg)), + sourcemap: true, }, ], }, @@ -67,6 +68,7 @@ let configs = [ { format: 'esm', file: toMinPath(toRecordPath(pkg.module)), + sourcemap: true, }, ], }, @@ -106,6 +108,7 @@ let configs = [ name: 'rrweb', format: 'iife', file: toMinPath(pkg.unpkg), + sourcemap: true, }, ], }, @@ -160,6 +163,7 @@ let configs = [ { format: 'esm', file: toMinPath(pkg.module), + sourcemap: true, }, ], }, @@ -183,6 +187,7 @@ if (process.env.BROWSER_ONLY) { name: 'rrweb', format: 'iife', file: toMinPath(pkg.unpkg), + sourcemap: true, }, ], }; diff --git a/scripts/repl.ts b/scripts/repl.ts index 9fb73c98..f8523dfd 100644 --- a/scripts/repl.ts +++ b/scripts/repl.ts @@ -136,7 +136,7 @@ function getCode(): string { - +