fix: correct tlsn-js dependency + add wasm to build result (#21)

This commit is contained in:
Hendrik Eeckhaut
2024-02-18 10:36:20 +01:00
committed by GitHub
parent 644ece89e3
commit 1415792f9e
2 changed files with 12 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import React, { ReactElement, useCallback, useEffect, useState } from 'react';
import { createRoot } from 'react-dom/client';
import { prove, verify } from '../../src';
import { prove, verify } from 'tlsn-js';
import { Proof } from 'tlsn-js/build/types';
import { Watch } from 'react-loader-spinner'

View File

@@ -1,5 +1,6 @@
var webpack = require('webpack'),
path = require('path'),
path = require("path"),
CopyWebpackPlugin = require("copy-webpack-plugin"),
HtmlWebpackPlugin = require('html-webpack-plugin');
const ASSET_PATH = process.env.ASSET_PATH || '/';
@@ -76,6 +77,15 @@ var options = {
.concat(['.js', '.jsx', '.ts', '.tsx', '.css']),
},
plugins: [
new CopyWebpackPlugin({
patterns: [
{
from: "node_modules/tlsn-js/build",
to: path.join(__dirname, "build"),
force: true,
},
],
}),
new HtmlWebpackPlugin({
template: path.join(__dirname, 'index.ejs'),
filename: 'index.html',