diff --git a/packages/astro/src/core/build/plugins/plugin-analyzer.ts b/packages/astro/src/core/build/plugins/plugin-analyzer.ts index 36cdfd571..3dd7835fb 100644 --- a/packages/astro/src/core/build/plugins/plugin-analyzer.ts +++ b/packages/astro/src/core/build/plugins/plugin-analyzer.ts @@ -90,6 +90,9 @@ export function vitePluginAnalyzer(internals: BuildInternals): VitePlugin { } internals.discoveredScripts.add(moduleId); + // TODO: map raw URL (?type=script) to client build ready URL + // This will inject the raw URL as a script tag as-is, + // which will fail to map with the client build output. pageData.propagatedScripts = propagatedMapByImporter; // Add propagated scripts to client build,