diff options
author | 2021-07-27 14:50:47 -0400 | |
---|---|---|
committer | 2021-07-27 14:50:47 -0400 | |
commit | e90615f9400815881c04921a97c550d8c1a82ac5 (patch) | |
tree | 42af5c5e42346a3f111d3b834228d48513bbce02 | |
parent | 95a5d3465200815cc55774bfa97e25d74dcf6092 (diff) | |
download | astro-e90615f9400815881c04921a97c550d8c1a82ac5.tar.gz astro-e90615f9400815881c04921a97c550d8c1a82ac5.tar.zst astro-e90615f9400815881c04921a97c550d8c1a82ac5.zip |
Add internals to knownEntrypoints (#885)
* Add internals to knownEntrypoints
* Added a changeset
* Add prismjs to knownentrypoints
Diffstat (limited to '')
-rw-r--r-- | .changeset/wise-months-run.md | 5 | ||||
-rw-r--r-- | packages/astro/src/runtime.ts | 8 |
2 files changed, 12 insertions, 1 deletions
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) { |