Commonjs compatiblity of dhtmlxSuite Professional edition


#1

Hi,

I’m building an application with dhtmlxSuite Professional edition. I’m trying to make a single bundle.js file using browserify, therefore I made all by js files commonjs compatible but since dhtmlx.js is not commonjs compatible so for that I used browserify-shim transformation. But still I’m facing issues in accessing it objects and properties from my other modules, need help?


#2

DHTMLX uses global objects, so it can’t be used in the same way as commonjs module.
All modern bundlers can bundle the such kind library without problems ( webpack for example )
Still, we don’t recommend to bundle both library and app’s code into the single file. The library is quite big and static, it will not change for each app update, so it has the sense to serve it as a standalone file to use browser-level caching.