can .js file be loaded without using require() #64
-
Hello. Should I be able to do something like the below? My app's code doesn't work properly when imported using require(), so I'm trying to load it dynamically. But it seems like it's not getting the decrypted version.
The console shows an error |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The js code is built with Haxe and by itself the code can be imported and executed from a require() call. I was able to get it working with some tweaks. The issue was with some third party js libraries that needed to run in a global context.
|
Beta Was this translation helpful? Give feedback.
The js code is built with Haxe and by itself the code can be imported and executed from a require() call. I was able to get it working with some tweaks. The issue was with some third party js libraries that needed to run in a global context.