-
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
Usage with hxtsdgen #91
Comments
Modular supports node - either through Webpack with the Haxe loader, or using I'll need to think about the Typescript definitions question... It will be problematic with the Webpack Haxe loader because the JS is in memory so I don't know how the TS compiler would find the |
I don't believe it can work with the Webpack Haxe Loader, because Haxe compilation happens dynamically when Webpack "loads" |
Couldn't we just generate the |
Er... would a |
I currently have a fork of hxgenjs that integrates hxdtsgen (plan to submit a PR soon) to generate more complete d.ts files for each of the generated js classes. I'm using those to consume Haxe classes from TS. See: https://community.haxe.org/t/gist-sample-ts-haxe-bridge-fullstack-app-using-hxgenjs/1704 and https://github.com/haxe-boilerplate/pwa-ts-haxe-sample.
hxdtsgen
. I assume it would fail as the post-processor would not be aware of the main.d.ts file?What I'd like to do is to experiment using haxe-modular with hxtsdgen, maybe through haxe-webpack-loader, and be able to do something like this:
EDIT:
2) Also, as a side-question, hxgenjs allows me to transparently target nodejs and the browser, in fact, hxgenjs doesn't care about that, it just outputs the js files, and I separate them per package (
client
andserver
), see here: https://github.com/haxe-boilerplate/pwa-ts-haxe-sample/blob/master/build.hxml. Webpack then processes the client files and typescript does its job with the server files (ts and js files).Would that be feasible to reproduce when using haxe-modular or is it only geared towards the browser only?
Any insights appreciated :)
Thanks in advance!
The text was updated successfully, but these errors were encountered: