Unable to load with Webpack
maufl opened this issue · comments
Felix Maurer commented
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?