mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Fix: JSX renderer "Hello world!" error (#822)
* fix: remove hello-world error * chore: add changeset
This commit is contained in:
parent
b0c0b95a4e
commit
af935c1b8d
2 changed files with 6 additions and 3 deletions
5
.changeset/lovely-cats-sin.md
Normal file
5
.changeset/lovely-cats-sin.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix error when no renderers are passed
|
|
@ -83,9 +83,7 @@ Unable to resolve a renderer that handles JSX transforms! Please include a \`ren
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'.js': {
|
'.js': {
|
||||||
code: `(() => {
|
code: '',
|
||||||
throw new Error("Hello world!");
|
|
||||||
})()`,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue