Temporarily disable @astrojs/renderer-vue (#279)

* chore: add package.json to externals

* fix: add missing packages to allowList

* fix: temporarily disable @astrojs/renderer-vue

* chore: add changeset
This commit is contained in:
Nate Moore 2021-05-29 08:30:32 -05:00 committed by GitHub
parent 2b1dbbe32f
commit ce30bb0041
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Temporarily disable `@astrojs/renderer-vue` while we investigate an issue with installation

View file

@ -7,6 +7,7 @@
"types": "./dist/types",
"exports": {
".": "./astro.mjs",
"./package.json": "./package.json",
"./snowpack-plugin": "./snowpack-plugin.cjs",
"./components/*": "./components/*",
"./runtime/svelte": "./dist/frontend/runtime/svelte.js"

View file

@ -9,7 +9,7 @@ const pkg = require('../package.json');
*/
// These packages SHOULD be built by `esinstall`
const allowList = new Set(['astro-prism', 'prismjs', 'shorthash']);
const allowList = new Set(['astring', 'astro-prism', 'estree-util-value-to-estree', 'prismjs', 'shorthash']);
const isAstroRenderer = (name: string) => {
return name.startsWith(`@astrojs/renderer-`);

View file

@ -269,7 +269,8 @@ interface CreateSnowpackOptions {
}
const DEFAULT_HMR_PORT = 12321;
const DEFAULT_RENDERERS = ['@astrojs/renderer-vue', '@astrojs/renderer-svelte', '@astrojs/renderer-react', '@astrojs/renderer-preact'];
// '@astrojs/renderer-vue' disabled due to a bug
const DEFAULT_RENDERERS = ['@astrojs/renderer-svelte', '@astrojs/renderer-react', '@astrojs/renderer-preact'];
/** Create a new Snowpack instance to power Astro */
async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackOptions) {