I tried modular for a very simple code splitting setup. Pure haxe and I just want one class splitted into a separate file. Worked nicely withBundle.load.
But when I compile again from vshaxe (default task) the code is not splitted anymore. I get one complete file then. When I try haxe build.hxml from the command line it works. So I thought it might have to do with the compilation server or cache. Adding "haxe.enableCompilationServer": false to a settings.json makes code splitting work every time. Is this a known issue?
Also -D js-es=6 seems to mandatory for loading files. Is this correct?
I tried modular for a very simple code splitting setup. Pure haxe and I just want one class splitted into a separate file. Worked nicely with
Bundle.load.But when I compile again from vshaxe (default task) the code is not splitted anymore. I get one complete file then. When I try
haxe build.hxmlfrom the command line it works. So I thought it might have to do with the compilation server or cache. Adding"haxe.enableCompilationServer": falseto a settings.json makes code splitting work every time. Is this a known issue?Also
-D js-es=6seems to mandatory for loading files. Is this correct?