Skip to content

Typescript statement results in require for browser #19437

Closed Answered by sapphi-red
Akazm asked this question in Q&A
Discussion options

You must be logged in to vote

I guess babel is converting imports into requires unnecessarily. Vite does not support require outside of node_modules, so that's probably the reason why require is output as-is.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Akazm
Comment options

Answer selected by sapphi-red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants