From c2a113f1b31e6f6dfe66a77d89ce7bdf828a13a3 Mon Sep 17 00:00:00 2001 From: Mark Sinclair Date: Fri, 4 Nov 2022 10:57:08 +0000 Subject: [PATCH] Remove bootstrap async load, as it isn't needed when loading the wasm from a worker --- .../react-webpack-with-theme-example/src/bootstrap.ts | 2 -- .../react-webpack-with-theme-example/webpack.common.js | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 sdk/typescript/examples/react-webpack-with-theme-example/src/bootstrap.ts diff --git a/sdk/typescript/examples/react-webpack-with-theme-example/src/bootstrap.ts b/sdk/typescript/examples/react-webpack-with-theme-example/src/bootstrap.ts deleted file mode 100644 index 9cebe266a3..0000000000 --- a/sdk/typescript/examples/react-webpack-with-theme-example/src/bootstrap.ts +++ /dev/null @@ -1,2 +0,0 @@ -import('./index') - .catch(error => console.error('Unable to load app :-(', error)); diff --git a/sdk/typescript/examples/react-webpack-with-theme-example/webpack.common.js b/sdk/typescript/examples/react-webpack-with-theme-example/webpack.common.js index d74befa8b2..2da82351d6 100644 --- a/sdk/typescript/examples/react-webpack-with-theme-example/webpack.common.js +++ b/sdk/typescript/examples/react-webpack-with-theme-example/webpack.common.js @@ -15,12 +15,12 @@ module.exports = mergeWithRules({ inject: true, filename: 'index.html', template: path.resolve(__dirname, 'src/index.html'), - chunks: ['bootstrap'], + chunks: ['index'], }, ]), { entry: { - bootstrap: path.resolve(__dirname, 'src/bootstrap.ts'), + index: path.resolve(__dirname, 'src/index.tsx'), worker: require.resolve('@nymproject/sdk/mixnet/wasm/worker.js'), }, output: {