Fix scanning sourcemap handling (#6114)

This commit is contained in:
Bjorn Lu 2023-02-03 20:47:20 +08:00 committed by Matthew Phillips
parent d04dbdfa19
commit 91b3307b98
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix sourcemap generation when scanning files

View file

@ -29,6 +29,7 @@ export default function astroScannerPlugin({ settings }: { settings: AstroSettin
const { meta = {} } = this.getModuleInfo(id) ?? {};
return {
code,
map: null,
meta: {
...meta,
astro: {