• 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.

    Returns string

    Filesystem path to WASM directory

    // In webpack.config.js
    const { getWasmSourcePath } = require('@kynesyslabs/demosdk/tlsnotary/auto-init');
    const CopyPlugin = require('copy-webpack-plugin');

    plugins: [
    new CopyPlugin({
    patterns: [{ from: getWasmSourcePath(), to: 'tlsn-wasm' }]
    })
    ]