diff --git a/.changeset/lemon-flies-clean.md b/.changeset/lemon-flies-clean.md new file mode 100644 index 000000000000..7deef534a901 --- /dev/null +++ b/.changeset/lemon-flies-clean.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix sourcemap generation when scanning files diff --git a/packages/astro/src/vite-plugin-scanner/index.ts b/packages/astro/src/vite-plugin-scanner/index.ts index 3976891c7258..92d6a16eb677 100644 --- a/packages/astro/src/vite-plugin-scanner/index.ts +++ b/packages/astro/src/vite-plugin-scanner/index.ts @@ -29,6 +29,7 @@ export default function astroScannerPlugin({ settings }: { settings: AstroSettin const { meta = {} } = this.getModuleInfo(id) ?? {}; return { code, + map: null, meta: { ...meta, astro: {