Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit b40714d

Browse files
committed
🐛 fix: apply sourcemap override to client and serviceworker too
1 parent f570e21 commit b40714d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const onwarn = (warning, _onwarn) => (warning.code === "CIRCULAR_DEPENDENCY" &&
3333
export default {
3434
client: {
3535
input: config.client.input().replace(/\.js$/, ".ts"),
36-
output: config.client.output(),
36+
output: { ...config.client.output(), sourcemap },
3737
plugins: [
3838
replace({
3939
"process.browser": true,
@@ -116,7 +116,7 @@ export default {
116116

117117
serviceworker: {
118118
input: config.serviceworker.input().replace(/\.js$/, ".ts"),
119-
output: config.serviceworker.output(),
119+
output: { ...config.serviceworker.output(), sourcemap },
120120
plugins: [
121121
resolve(),
122122
replace({

0 commit comments

Comments
 (0)