From 297104cc8aac739ba7fefd98c3946ff5390f9cc3 Mon Sep 17 00:00:00 2001 From: Kento Moriwaki <kentomoriwaki@gmail.com> Date: Fri, 6 Oct 2023 18:42:59 +0900 Subject: [PATCH] Enable preserveSource (#1309) --- packages/rrweb/rollup.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/rrweb/rollup.config.js b/packages/rrweb/rollup.config.js index 4afb1ace2f..998433bda9 100644 --- a/packages/rrweb/rollup.config.js +++ b/packages/rrweb/rollup.config.js @@ -125,6 +125,7 @@ function getPlugins(options = {}) { webWorkerLoader({ targetPlatform: 'browser', inline: true, + preserveSource: true, sourceMap, }), esbuild({ @@ -144,7 +145,11 @@ for (const c of baseConfigs) { resolve({ browser: true }), // supports bundling `web-worker:..filename` - webWorkerLoader({ targetPlatform: 'browser' }), + webWorkerLoader({ + targetPlatform: 'browser', + inline: true, + preserveSource: true, + }), typescript(), ];