From af935c1b8dd9c026d80724f64acd75b91146cc93 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Thu, 22 Jul 2021 12:39:54 -0500 Subject: [PATCH] Fix: JSX renderer "Hello world!" error (#822) * fix: remove hello-world error * chore: add changeset --- .changeset/lovely-cats-sin.md | 5 +++++ packages/astro/snowpack-plugin-jsx.cjs | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changeset/lovely-cats-sin.md diff --git a/.changeset/lovely-cats-sin.md b/.changeset/lovely-cats-sin.md new file mode 100644 index 000000000..148708f28 --- /dev/null +++ b/.changeset/lovely-cats-sin.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix error when no renderers are passed diff --git a/packages/astro/snowpack-plugin-jsx.cjs b/packages/astro/snowpack-plugin-jsx.cjs index 7d751b73f..419c55195 100644 --- a/packages/astro/snowpack-plugin-jsx.cjs +++ b/packages/astro/snowpack-plugin-jsx.cjs @@ -83,9 +83,7 @@ Unable to resolve a renderer that handles JSX transforms! Please include a \`ren return { '.js': { - code: `(() => { - throw new Error("Hello world!"); - })()`, + code: '', }, }; }