summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/lovely-cats-sin.md5
-rw-r--r--packages/astro/snowpack-plugin-jsx.cjs4
2 files changed, 6 insertions, 3 deletions
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: '',
},
};
}