Hi! Has anyone encountered an issue where libraries like Spatial Plugin, howler.js, pako, and FileSaver.js are included twice in the final JS file?
I’m using lime build html5. My project setup is described in project.hxp, which merges project.xml via: merge(new ProjectXMLParser("project.xml"));
In default projects, everything works as expected — the libraries are included only once. I’m trying to understand why duplication occurs in my project.
I’ve attached a screenshot showing the duplication.
import lime.tools.*;
@:compiler("-cp")
@:compiler("buildscripts")
@:compiler("-lib")
@:compiler("unifill")
class Project extends HXProject {
public function new() {
super();
BuildUtils.compileLocales();
var xmlConf = new ProjectXMLParser("project.xml");
merge(xmlConf);
haxedefs.set("appVer", meta.version);
haxedefs.set("lime-assets-version", Math.round(Date.now().getTime() / 1000)); // anti cache for GET requests for assets loading
BuildUtils.checkDefines(this.defines);
}
}