From 0a6706535575cd4eb94032262e68bd6367e39d32 Mon Sep 17 00:00:00 2001 From: bluwy Date: Fri, 3 Feb 2023 17:39:30 +0800 Subject: [PATCH] Fix scanning sourcemap handling --- .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 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: {