Closed g-a-v-i-n closed 5 years ago
@joemfb do you have time to take a look at this? Seems to be the final issue blocking this lib from being bundled.
I'm happy to, but I'm not clear on the bundling requirements for this lib. Won't any downstream applications have to include their own bundling regardless of what's done here?
keygen-js should just be an common js module. The bundling step completes, but using the lib or running tests against the build returns this error. I'm fairly confident that this is some issue with the rollup config, but not 100% sure.
@joemfb you seriously rock dude. Thanks for the help! Closing.
Was this resolved? I'm running into the same issue when using this package with rollup.
@seansean11 IIRC you can try the rollup-plugin-node-resolve
plugin and specify the following in your rollup.config.js
or similar:
plugins: [
..,
resolve({
browser: true,
}),
..
]
Branch:
tests
Encountered when running against tests against dist/bundle.js This also appears in the wallet-generator frontend.
I think this has something to do with the BIP32 library, or how this specific part is bundled.