-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared SSR/SSG hooks are not transformed #121
Comments
Hi @alii! Would you be interested in contributing a fix for this? You should be able to add a test case for this in here: https://github.com/blitz-js/babel-plugin-superjson-next/tree/main/test |
Can certainly have a go, but I've never written a babel plugin before. Learning time! |
love it! feel free to shoot me a question if you're stuck :) |
For a quick hack you can just manually add superjson like so (until the PR is merged):
|
When writing
getStaticProps
outside of a page file, the superjson code is never injected. For example:The text was updated successfully, but these errors were encountered: