mirror of
https://github.com/tlsnotary/tlsn-js.git
synced 2026-01-08 20:18:01 -05:00
fix: correct tlsn-js dependency + add wasm to build result (#21)
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
12
demo/react-ts-webpack/webpack.js
vendored
12
demo/react-ts-webpack/webpack.js
vendored
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user