Getting Started
Installation
Install the latest version of the SDK with:
yarn add @kynesyslabs/[email protected]Polyfills
When working on a browser environment, you need to configure polyfills for Buffer.
For a Vite project, this can be done using the vite-plugin-node-polyfills plugin.
yarn add --dev vite-plugin-node-polyfillsThen update your vite.config.ts to register the plugin and select polyfills.
import { defineConfig } from "vite";
import { nodePolyfills } from "vite-plugin-node-polyfills";
export default defineConfig({
plugins: [
// ...
nodePolyfills({
globals: {
Buffer: true,
},
}),
],
});
Check out the plugin documentation for configuring other polyfills.
Last updated