Skip to content

Commit

Permalink
fix(client): serve client sources next to deployed scripts (#11865)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeurer committed Feb 1, 2023
1 parent c120afc commit 63bd261
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/vite/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const envConfig = defineConfig({
output: {
file: path.resolve(__dirname, 'dist/client', 'env.mjs'),
sourcemap: true,
sourcemapPathTransform(relativeSourcePath) {
return path.basename(relativeSourcePath)
},
},
})

Expand All @@ -40,6 +43,9 @@ const clientConfig = defineConfig({
output: {
file: path.resolve(__dirname, 'dist/client', 'client.mjs'),
sourcemap: true,
sourcemapPathTransform(relativeSourcePath) {
return path.basename(relativeSourcePath)
},
},
})

Expand Down

0 comments on commit 63bd261

Please sign in to comment.