browser compatibility for webpack
Opened this issue · 0 comments
diminator commented
When using in the browser in webpack, I have some import errors - probably due to node-specific libs such as ws
and ed25519
import { Client } from 'ilp-core'
const client = new Client({
type: 'bells',
auth: {
account: 'https://red.ilpdemo.org/ledger/accounts/alice',
password: 'alice'
}
})
Uncaught Error: Cannot find module "."
webpackMissingModule @ client.js:22
Client @ client.js:22