Skip to content

Commit

Permalink
Generate hires sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jun 27, 2023
1 parent f0d21a7 commit 6dbf95f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/vite-plugin-astro-postprocess/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function astro(_opts: AstroPluginOptions): Plugin {
if (s) {
return {
code: s.toString(),
map: s.generateMap(),
map: s.generateMap({ hires: true }),
};
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/vite-plugin-env/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function envVitePlugin({ settings }: EnvPluginOptions): vite.Plug
if (s) {
return {
code: s.toString(),
map: s.generateMap(),
map: s.generateMap({ hires: true }),
};
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/vite-plugin-scripts/page-ssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function astroScriptsPostPlugin({

return {
code: s.toString(),
map: s.generateMap(),
map: s.generateMap({ hires: true }),
};
},
};
Expand Down

0 comments on commit 6dbf95f

Please sign in to comment.