-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose sync/async option when loading bundle #85
base: master
Are you sure you want to change the base?
Conversation
I'm a bit confused by Electron, shouldn't the election client NOT have the nodejs flag? Because in my understanding Electron is providing a shim node API to the client. |
I simply understand electron as allowing one to run node.js scripts in a html file: <script>
var fs = require('fs');
fs.createReadStream(...);
</script> So I have always been simply adding
Why? the |
Aha, pardon my ignorance, so there really is the full node API basically in the browser context? Because what I've seen is reports that when Haxe thinks it's nodeJS it uses a different Http implementation which doesn't work in Electron... |
Yes as far as I understand |
I don't know about haxe http, I always use fetch in electron |
You know we may as well just explicitly |
@kevinresol not sure it's still a need for you but |
The problem here is that I need both async and sync in electron. sync is for loading node modules |
From last time I did an Electron app you can use the synchronous |
As I said in OP I need to load bundles from remote asynchronously. Both sync and async are needed in the same build, a single js output. |
This is mainly for electron. Because I would have to add
-lib hxnodejs
to enable some nodejs API while I still want to load bundles from remote asynchronously.