From ac7fb04d6b162f28a337918138d5737e2c0fffad Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Fri, 3 Feb 2023 20:47:20 +0800 Subject: [PATCH] Fix scanning sourcemap handling (#6114) --- .changeset/lemon-flies-clean.md | 5 +++++ packages/astro/src/vite-plugin-scanner/index.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/lemon-flies-clean.md diff --git a/.changeset/lemon-flies-clean.md b/.changeset/lemon-flies-clean.md new file mode 100644 index 000000000..7deef534a --- /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 3976891c7..92d6a16eb 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: {