Skip to content

Commit

Permalink
Enable preserveSource (rrweb-io#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
KentoMoriwaki authored Oct 6, 2023
1 parent 58c9104 commit 297104c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/rrweb/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ function getPlugins(options = {}) {
webWorkerLoader({
targetPlatform: 'browser',
inline: true,
preserveSource: true,
sourceMap,
}),
esbuild({
Expand All @@ -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(),
];
Expand Down

0 comments on commit 297104c

Please sign in to comment.