Skip to content

Commit

Permalink
fix(start-vite-plugin): correctly generate source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
schiller-manuel committed Dec 12, 2024
1 parent 7190a61 commit 739f4ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/start-vite-plugin/src/compilers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function compileEliminateDeadCode(opts: ParseAstOptions) {
deadCodeElimination(ast)
return generate(ast, {
sourceMaps: true,
filename: opts.filename,
})
}

Expand Down Expand Up @@ -185,6 +186,7 @@ export function compileStartOutput(opts: ParseAstOptions) {

return generate(ast, {
sourceMaps: true,
filename: opts.filename,
minified: process.env.NODE_ENV === 'production',
})
}
Expand Down

0 comments on commit 739f4ed

Please sign in to comment.