From ce30bb0041830d2191e8fde94f00b73a79d36754 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Sat, 29 May 2021 08:30:32 -0500 Subject: [PATCH] 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 --- .changeset/nine-buttons-decide.md | 5 +++++ packages/astro/package.json | 1 + packages/astro/src/external.ts | 2 +- packages/astro/src/runtime.ts | 3 ++- 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .changeset/nine-buttons-decide.md 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) {