From 290f203279eecd590371412aad637a5a673ce604 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Fri, 27 Aug 2021 10:49:08 -0700 Subject: [PATCH] Fix knownEntrypoint warning for Fix __astro_hoisted_scripts.js (#1251) * Add new internal module to the knownEntrypoints * Adds a changeset --- .changeset/cool-hats-sing.md | 5 +++++ packages/astro/src/runtime.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/cool-hats-sing.md diff --git a/.changeset/cool-hats-sing.md b/.changeset/cool-hats-sing.md new file mode 100644 index 000000000..c0713f00f --- /dev/null +++ b/.changeset/cool-hats-sing.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix knownEntrypoint warning for \_\_astro_hoisted_scripts.js diff --git a/packages/astro/src/runtime.ts b/packages/astro/src/runtime.ts index a1627912b..e1770d6e9 100644 --- a/packages/astro/src/runtime.ts +++ b/packages/astro/src/runtime.ts @@ -301,6 +301,7 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO 'astro/dist/internal/element-registry.js', 'astro/dist/internal/fetch-content.js', 'astro/dist/internal/__astro_slot.js', + 'astro/dist/internal/__astro_hoisted_scripts.js', 'prismjs', ]; for (const renderer of rendererInstances) {