Skip to content

Commit

Permalink
fix: correct tlsn-js dependency + add wasm to build result (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau authored Feb 18, 2024
1 parent 644ece8 commit 1415792
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/react-ts-webpack/app.tsx
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
12 changes: 11 additions & 1 deletion demo/react-ts-webpack/webpack.js
Original file line number Diff line number Diff line change
@@ -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 || '/';
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 1415792

Please sign in to comment.