bluwy / whyframe

Develop components in isolation with just an iframe

Home Page:https://whyframe.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom story components don't work with arrow functions

pawelblaszczyk5 opened this issue · comments

Arrow functions don't work properly as custom story components due to usage of arguments in the generated code.

Exact line of code:

return `arguments[0].${attr.value}`

Reproduction: https://stackblitz.com/edit/vitejs-vite-zygwoz?file=src/routes/index.tsx

Fixed in @whyframe/jsx v0.1.8!