Add internals to knownEntrypoints (#885)
* Add internals to knownEntrypoints * Added a changeset * Add prismjs to knownentrypoints
This commit is contained in:
parent
95a5d34652
commit
e90615f940
2 changed files with 12 additions and 1 deletions
5
.changeset/wise-months-run.md
Normal file
5
.changeset/wise-months-run.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixes warnings for Astro internals for fetch-content and slots
|
|
@ -348,7 +348,13 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO
|
||||||
|
|
||||||
// Make sure that Snowpack builds our renderer plugins
|
// Make sure that Snowpack builds our renderer plugins
|
||||||
const rendererInstances = await configManager.buildRendererInstances();
|
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) {
|
for (const renderer of rendererInstances) {
|
||||||
knownEntrypoints.push(renderer.server);
|
knownEntrypoints.push(renderer.server);
|
||||||
if (renderer.client) {
|
if (renderer.client) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue