elsassph / haxe-modular

Haxe-JS code splitting, NPM dependencies bundling, hot-reload
116 stars 14 forks source link

Support builds without -main #71

Open elsassph opened 6 years ago

elsassph commented 6 years ago

Currently Modular detects the entry class by looking for SomeClass.main() which is expected to be the last expression of the generated body - this isn't generated when building without main entry point, and lots of assumptions in the code are made that this is the case.

Processing still somehow works when the main class is called Main (default in the code), but things like sourcemaps processing fails.