@0x/mesh-browser-lite 中文文档教程
@0x/mesh-browser-lite
这个包提供了一组 Typescript 和 Javascript 绑定来运行一个 浏览器中的 0x-mesh 节点。 浏览器节点的 Wasm 二进制文件未捆绑在 这个包,而不是期望由包的消费者服务。 这个包比 @0x/mesh-browser
包更小,并且 可能有更快的加载时间。
Installation
yarn add @0x/mesh-browser-lite
如果您的项目使用 TypeScript,请将以下内容添加到您的 tsconfig.json
:
"compilerOptions": {
"typeRoots": ["node_modules/@types"],
}
Contributing
如果您想贡献客户端的错误修复或新功能,检查 0xproject/0x-mesh 项目并使用以下命令安装依赖项、构建、lint 和测试您的更改。
Install dependencies
yarn install
Build
yarn build
Lint
yarn lint
@0x/mesh-browser-lite
This packages provides a set of Typescript and Javascript bindings for running a 0x-mesh node in the browser. The browser node's Wasm binary is not bundled in this package and is instead expected to be served by the consumer of the package. This package has a smaller bundle size than the @0x/mesh-browser
package and may have faster load times.
Installation
yarn add @0x/mesh-browser-lite
If your project is in TypeScript, add the following to your tsconfig.json
:
"compilerOptions": {
"typeRoots": ["node_modules/@types"],
}
Contributing
If you would like to contribute bug fixes or new features to the client, checkout the 0xproject/0x-mesh project and use the below commands to install the dependencies, build, lint and test your changes.
Install dependencies
yarn install
Build
yarn build
Lint
yarn lint