Skip to content

Commit 63bd261

Browse files
authored
fix(client): serve client sources next to deployed scripts (#11865)
1 parent c120afc commit 63bd261

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/vite/rollup.config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ const envConfig = defineConfig({
2626
output: {
2727
file: path.resolve(__dirname, 'dist/client', 'env.mjs'),
2828
sourcemap: true,
29+
sourcemapPathTransform(relativeSourcePath) {
30+
return path.basename(relativeSourcePath)
31+
},
2932
},
3033
})
3134

@@ -40,6 +43,9 @@ const clientConfig = defineConfig({
4043
output: {
4144
file: path.resolve(__dirname, 'dist/client', 'client.mjs'),
4245
sourcemap: true,
46+
sourcemapPathTransform(relativeSourcePath) {
47+
return path.basename(relativeSourcePath)
48+
},
4349
},
4450
})
4551

0 commit comments

Comments
 (0)