Skip to content

Commit

Permalink
also guard with sourceMap option
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 15, 2023
1 parent 75239f5 commit 4aeda33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,10 @@ export const plugins = [
}

// Minify
if (nitro.options.experimental.sourcemapIgnore !== false) {
if (
nitro.options.sourceMap &&
nitro.options.experimental.sourcemapIgnore !== false
) {
rollupConfig.plugins.push(sourcemapIgnore());
}

Expand Down

0 comments on commit 4aeda33

Please sign in to comment.