0

I want create orbitdb bundle

In README on github i see this example

npm install orbit-db ipfs

const IPFS = require('ipfs')
const OrbitDB = require('orbit-db')

i am using es6 import In example for browser on github

// Import IPFS module
import IPFS from 'ipfs'

// Import OrbitDB module from 'orbit-db', eg. directory to its package.json
import OrbitDB from '../../..'

But it is not work

I build es5 modules

npm run build:es5

it is build not es5 modules

Sergey
  • 418
  • 1
  • 7
  • 21

1 Answers1

1

To build this example run the following commands

npm install
npm run build:examples

after that you can open examples/browser/browser-webpack-example/index.html in your browser.

Edit: We updated the documentation to run the examples

tabcat
  • 26
  • 3