diff --git a/packages/astro/src/content/vite-plugin-content-assets.ts b/packages/astro/src/content/vite-plugin-content-assets.ts index 397057148..01c257235 100644 --- a/packages/astro/src/content/vite-plugin-content-assets.ts +++ b/packages/astro/src/content/vite-plugin-content-assets.ts @@ -88,7 +88,11 @@ export function astroContentProdBundlePlugin({ internals }: { internals: BuildIn const pageViteID = pageInfo.id; const pageData = getPageDataByViteID(internals, pageViteID); if (!pageData) continue; +<<<<<<< HEAD +======= + console.log({ pageData }); +>>>>>>> bdc0a6498 (updated) const entryCss = pageData.contentCollectionCss?.get(id); const entryScripts = pageData.propagatedScripts?.get(id); if (entryCss) { @@ -98,6 +102,10 @@ export function astroContentProdBundlePlugin({ internals }: { internals: BuildIn ); } if (entryScripts) { +<<<<<<< HEAD +======= + console.log({ entryScripts }); +>>>>>>> bdc0a6498 (updated) chunk.code = chunk.code.replace( JSON.stringify(SCRIPTS_PLACEHOLDER), JSON.stringify( diff --git a/packages/astro/src/core/build/plugins/plugin-analyzer.ts b/packages/astro/src/core/build/plugins/plugin-analyzer.ts index 3dd7835fb..36cdfd571 100644 --- a/packages/astro/src/core/build/plugins/plugin-analyzer.ts +++ b/packages/astro/src/core/build/plugins/plugin-analyzer.ts @@ -90,9 +90,6 @@ 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,