Skip to content
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

Feat/handle ts syntax in define page #238

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

undead-voron
Copy link

Handle TypeScript syntax within definePage()
#57

Comment on lines +107 to +110
const transformedResults = transformSync(
`export default ${s.toString()}`,
{ plugins: ['@babel/plugin-transform-typescript'] }
)?.code
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you benchmark this with vite plugin inspect? I think it's probably too slow 🤔

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't benchmarked it with vite plugin inspect. First time modifying vite plugin. I'll check it a bit later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants