How to prevent tsdx outputting multiple chunks? #1085
Unanswered
MagnusBrzenk
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
-
I am building a library that depends on three.js v128. Rather than making the users add the three.js dependency themselves, I sought to conditionally add it within the UMD script. However, in order for this to work, I have to first load three.js and only then run the library. I therefore tried to do the following:
... this works in development environment BUT when I try to build a UMD it gives me an error due to wanting to output multiple chunks. But I don't want multiple chunks -- I want to keep a single file UMD, the only reason for the relative import being that I need to first ensure that three.js v128 is loaded and only then load stuff that depends on there being a gloabl variable THREE.
Is what am I trying to do possible?
Beta Was this translation helpful? Give feedback.
All reactions