Skip to content

Commit 297104c

Browse files
Enable preserveSource (#1309)
1 parent 58c9104 commit 297104c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/rrweb/rollup.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ function getPlugins(options = {}) {
125125
webWorkerLoader({
126126
targetPlatform: 'browser',
127127
inline: true,
128+
preserveSource: true,
128129
sourceMap,
129130
}),
130131
esbuild({
@@ -144,7 +145,11 @@ for (const c of baseConfigs) {
144145
resolve({ browser: true }),
145146

146147
// supports bundling `web-worker:..filename`
147-
webWorkerLoader({ targetPlatform: 'browser' }),
148+
webWorkerLoader({
149+
targetPlatform: 'browser',
150+
inline: true,
151+
preserveSource: true,
152+
}),
148153

149154
typescript(),
150155
];

0 commit comments

Comments
 (0)