Open jayschwa opened 7 years ago
That's weird, it's working fine with web pack. I don't use roll up myself... perhaps it's something to do with the web pack module stuff in the main file.
Yes that seems to be the case. If I remove everything before exports.default = ...
and change that to export default
, then it works.
I'll have to do a bit of research to see how to get webpack to bundle this in a way that rollup can use.
Edit: @jayschwa do you mind pointing me to a module published with webpack with does work with rollup? Just need to take a peek at how they are doing things.
I've just hit the same issue. I'm not sure what the issue with the generated UMD is. I found adding a 'module' definition in package.json worked, pointing to the source and not the generated umd
"module": "./src/hqx.js",
This is mentioned here: https://rollupjs.org/guide/en/#publishing-es-modules
Here's an example of a published module I'm using that does work: https://github.com/c9fe/Uint1Array
Using Rollup v0.50.0 with js-hqx v1.0.0.