From e90615f9400815881c04921a97c550d8c1a82ac5 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Tue, 27 Jul 2021 14:50:47 -0400 Subject: [PATCH] Add internals to knownEntrypoints (#885) * Add internals to knownEntrypoints * Added a changeset * Add prismjs to knownentrypoints --- .changeset/wise-months-run.md | 5 +++++ packages/astro/src/runtime.ts | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .changeset/wise-months-run.md diff --git a/.changeset/wise-months-run.md b/.changeset/wise-months-run.md new file mode 100644 index 000000000..626d8ba3e --- /dev/null +++ b/.changeset/wise-months-run.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fixes warnings for Astro internals for fetch-content and slots diff --git a/packages/astro/src/runtime.ts b/packages/astro/src/runtime.ts index 8103d4bb9..03a4f3226 100644 --- a/packages/astro/src/runtime.ts +++ b/packages/astro/src/runtime.ts @@ -348,7 +348,13 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO // Make sure that Snowpack builds our renderer plugins const rendererInstances = await configManager.buildRendererInstances(); - const knownEntrypoints: string[] = ['astro/dist/internal/__astro_component.js', 'astro/dist/internal/element-registry.js']; + const knownEntrypoints: string[] = [ + 'astro/dist/internal/__astro_component.js', + 'astro/dist/internal/element-registry.js', + 'astro/dist/internal/fetch-content.js', + 'astro/dist/internal/__astro_slot.js', + 'prismjs' + ]; for (const renderer of rendererInstances) { knownEntrypoints.push(renderer.server); if (renderer.client) {