I attempted to use jiti to import a TypeScript file, but the module was initialized multiple times.
#26
Unanswered
EmptyDreams
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, I have three files:
src/utils/loader.tssrc/index.tssrc/test.tsRunning the code reveals that
hellois printed twice, suggesting thatjitimight be loading the current module more than once.Is there any way to solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions