Get the path to WASM files bundled with the SDK.
This is the filesystem path (not URL) to the WASM files in node_modules. Use this with your bundler's copy plugin.
Filesystem path to WASM directory
// In webpack.config.jsconst { getWasmSourcePath } = require('@kynesyslabs/demosdk/tlsnotary/auto-init');const CopyPlugin = require('copy-webpack-plugin');plugins: [ new CopyPlugin({ patterns: [{ from: getWasmSourcePath(), to: 'tlsn-wasm' }] })] Copy
// In webpack.config.jsconst { getWasmSourcePath } = require('@kynesyslabs/demosdk/tlsnotary/auto-init');const CopyPlugin = require('copy-webpack-plugin');plugins: [ new CopyPlugin({ patterns: [{ from: getWasmSourcePath(), to: 'tlsn-wasm' }] })]
Get the path to WASM files bundled with the SDK.
This is the filesystem path (not URL) to the WASM files in node_modules. Use this with your bundler's copy plugin.