xcoobee-sdk
Version:
The XcooBee SDK is a facility to abstract lower level calls and implement standard behaviors. The XcooBee team is providing this to improve the speed of implementation and show the best practices while interacting with XcooBee.
9 lines (7 loc) • 473 B
Markdown
We need a cross-plaform way to get the openpgp.js library. Here, we are taking
advantage of the fact that webpack will read the `package.json`'s `browser`
field to determine which module to include. When this directory is imported
from Node.js, it will read the `package.json`'s `main` field to determine which
module to include.
In order for this to work with the same import, then both the `browser.js` and
`node.js` modules need to export the same interface.