summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2021-05-29 08:30:32 -0500
committerGravatar GitHub <noreply@github.com> 2021-05-29 08:30:32 -0500
commitce30bb0041830d2191e8fde94f00b73a79d36754 (patch)
tree1c4d6e25d8d98ef77e60d3c4a22d7205f878f4ab
parent2b1dbbe32f25477836da8077d984b7b4354f5b91 (diff)
downloadastro-ce30bb0041830d2191e8fde94f00b73a79d36754.tar.gz
astro-ce30bb0041830d2191e8fde94f00b73a79d36754.tar.zst
astro-ce30bb0041830d2191e8fde94f00b73a79d36754.zip
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
-rw-r--r--.changeset/nine-buttons-decide.md5
-rw-r--r--packages/astro/package.json1
-rw-r--r--packages/astro/src/external.ts2
-rw-r--r--packages/astro/src/runtime.ts3
4 files changed, 9 insertions, 2 deletions
diff --git a/.changeset/nine-buttons-decide.md b/.changeset/nine-buttons-decide.md
new file mode 100644
index 000000000..2c1dc3959
--- /dev/null
+++ b/.changeset/nine-buttons-decide.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Temporarily disable `@astrojs/renderer-vue` while we investigate an issue with installation
diff --git a/packages/astro/package.json b/packages/astro/package.json
index 8a0432f65..2d669fb7a 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -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"
diff --git a/packages/astro/src/external.ts b/packages/astro/src/external.ts
index 3269b2c76..f8ae0e23c 100644
--- a/packages/astro/src/external.ts
+++ b/packages/astro/src/external.ts
@@ -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-`);
diff --git a/packages/astro/src/runtime.ts b/packages/astro/src/runtime.ts
index 55f38505b..5395b6032 100644
--- a/packages/astro/src/runtime.ts
+++ b/packages/astro/src/runtime.ts
@@ -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) {