Hi, i tried to use this library with Webpack, however I'm unable to import the compress method. The reason is that, in Webpack the window object is defined, therefore the bz2 object is defined on the window object and not exported. Maybe this can be solved by always checking whether the module.exports object is defined?
Hi, i tried to use this library with Webpack, however I'm unable to import the compress method. The reason is that, in Webpack the
windowobject is defined, therefore thebz2object is defined on the window object and not exported. Maybe this can be solved by always checking whether themodule.exportsobject is defined?