From 51db2b9b4efd899bdd7efc481a5f226b3b040614 Mon Sep 17 00:00:00 2001 From: Ben Holmes Date: Wed, 25 May 2022 20:47:28 -0400 Subject: [PATCH] Fix: markdown imports failing (#3444) * fix: revert JSX expression hack (temporary!) * chore: changeset * fix: skip stray JSX expression test * Revert "fix: skip stray JSX expression test" This reverts commit fd3042d0033426ebdc5a3d9b2a11f85519cc797f. * Revert "fix: revert JSX expression hack (temporary!)" This reverts commit b78883fca14dabca870af39879af3079b76b0ecb. * fix: add markdown-remark to external deps! --- .changeset/seven-ghosts-confess.md | 6 ++++++ packages/astro/src/core/create-vite.ts | 1 + 2 files changed, 7 insertions(+) create mode 100644 .changeset/seven-ghosts-confess.md diff --git a/.changeset/seven-ghosts-confess.md b/.changeset/seven-ghosts-confess.md new file mode 100644 index 000000000..2bfab1b26 --- /dev/null +++ b/.changeset/seven-ghosts-confess.md @@ -0,0 +1,6 @@ +--- +'astro': patch +'@astrojs/markdown-remark': patch +--- + +Fix: markdown imports failing due to internal dependency issue diff --git a/packages/astro/src/core/create-vite.ts b/packages/astro/src/core/create-vite.ts index 8cc0cae2f..8270028d4 100644 --- a/packages/astro/src/core/create-vite.ts +++ b/packages/astro/src/core/create-vite.ts @@ -21,6 +21,7 @@ const ALWAYS_EXTERNAL = new Set([ ...builtinModules.map((name) => `node:${name}`), '@sveltejs/vite-plugin-svelte', 'micromark-util-events-to-acorn', + '@astrojs/markdown-remark', 'serialize-javascript', 'node-fetch', 'prismjs',