diff --git a/src/utils/code.ts b/src/utils/code.ts index b3bf88de3c..b20b0f7b10 100644 --- a/src/utils/code.ts +++ b/src/utils/code.ts @@ -9,7 +9,7 @@ const capitalize = (value: string) => { } export const formatCode = async (code: string) => { - let formattedCode = `// 🚨 Your props contains invalid code` + let formattedCode = `// 🚨 Your props contains invalid code\n${code}` const prettier = await import('prettier/standalone') const babylonParser = await import('prettier/parser-babylon')