我想要创建轨道数据库包
在github上的README中,我看到了这个例子
npm install orbit-db ipfs
const IPFS = require('ipfs')
const OrbitDB = require('orbit-db')我正在使用es6 import作为github浏览器的示例
// Import IPFS module
import IPFS from 'ipfs'
// Import OrbitDB module from 'orbit-db', eg. directory to its package.json
import OrbitDB from '../../..'但这不是工作
我构建了es5模块
npm run build:es5它是构建而不是es5模块。
发布于 2021-03-20 18:33:46
若要生成此示例,请运行以下命令
npm install
npm run build:examples之后,您可以在浏览器中打开examples/browser/browser-webpack-example/index.html。
编辑:我们更新了文档以运行示例
https://stackoverflow.com/questions/66723906
复制相似问题