Remove __astro_component from knownEntrypoints (#327)

* Remove __astro_component from knownEntrypoints

* Adds a default site. Otherwise the build throws

* Adds the changeset
This commit is contained in:
Matthew Phillips 2021-06-08 09:17:05 -04:00 committed by GitHub
parent 2db08436e6
commit f66fd1f737
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixes regression caused by attempting to prebuild an internal dep

View file

@ -6,7 +6,7 @@ const transformPromise = import('./dist/compiler/index.js');
module.exports = (snowpackConfig, { resolvePackageUrl, hmrPort, renderers, astroConfig } = {}) => {
return {
name: 'snowpack-astro',
knownEntrypoints: ['astro/dist/internal/h.js', 'astro/components/Prism.astro', 'astro/dist/internal/__astro_component.js'],
knownEntrypoints: ['astro/dist/internal/h.js', 'astro/components/Prism.astro'],
resolve: {
input: ['.astro', '.md'],
output: ['.js', '.css'],

View file

@ -4,7 +4,7 @@ export default {
// dist: './dist', // When running `astro build`, path to final static output
// public: './public', // A folder of static files Astro will copy to the root. Useful for favicons, images, and other files that dont need processing.
buildOptions: {
// site: '', // Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs.
site: 'http://example.com', // Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs.
// sitemap: true, // Generate sitemap (set to "false" to disable)
},
devOptions: {