Skip to content

Commit c1e6807

Browse files
committed
REVERT BEFORE MERGE: Test what happens in prod if unable to compile
1 parent 7338361 commit c1e6807

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

beta/plugins/remark-sandpack-target-languages.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ module.exports = () => {
5252
} catch (error) {
5353
// TODO: Test behavior when we just let it throw here.
5454
// We're mostly handling malformed snippet code here.
55-
console.warn(`Failed to compile ${meta}:\n${codeTS}\n${error}`);
55+
throw new Error(
56+
`Failed to compile ${meta}:\n${codeTS}\n${error}`
57+
);
5658
}
5759
const codeJSNode = {
5860
type: 'code',

beta/src/content/learn/describing-the-ui.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default function Gallery() {
9494
```
9595

9696
```tsx Profile.tsx
97-
export default function Profile() {
97+
export dfault function Profile() {
9898
return (
9999
<img
100100
src="https://i.imgur.com/QIrZWGIs.jpg"

0 commit comments

Comments
 (0)