Add internals to knownEntrypoints (#885)

* Add internals to knownEntrypoints

* Added a changeset

* Add prismjs to knownentrypoints
This commit is contained in:
Matthew Phillips 2021-07-27 14:50:47 -04:00 committed by GitHub
parent 95a5d34652
commit e90615f940
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixes warnings for Astro internals for fetch-content and slots

View file

@ -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) {