This patch swaps out xml2js for xml-parser so that the collada parser can return an object directly without going through a callback.
I tried to make this change minimal to the existing code by formatting the xml-parser object in the way that the xml2js object was formatted previously. The callback is now optional so that the test suite and examples all work the same as before.
One upside is that the payload for the browser is much smaller. Before:
This patch swaps out xml2js for xml-parser so that the collada parser can return an object directly without going through a callback.
I tried to make this change minimal to the existing code by formatting the xml-parser object in the way that the xml2js object was formatted previously. The callback is now optional so that the test suite and examples all work the same as before.
One upside is that the payload for the browser is much smaller. Before:
After: