I am trying to incorporate a JavaScript module into JavascriptCore on iOS.
To achieve this, I am fetching the file's text through a standard HTTP request on the iOS platform. Once I have obtained the entire string, I plan to parse it into the JScontext.
Now, my goal is to load that module and potentially address any additional dependencies, although the latter is not crucial.
I attempted to use requireJS for node, but encountered numerous dependency errors which led me to believe it may be outdated.
Exploring other options, I experimented with steal, yet I remain uncertain if it is the correct solution. I also explored https://github.com/millermedeiros/nodefy
In essence, I aim to replicate the functionality of requireJS in a browser using pure JavaScript (sans browser or node).
Furthermore, I intend to consolidate everything via browserify and examined resources such as RequireJS load string
The issue arises when I attempt to browserify the code (requiring requirejs), as the process fails due to unresolved dependencies?
Could someone provide guidance on how to proceed in the right direction?