From e670752ec71ea083d68c8f68a8fd177b0e854d82 Mon Sep 17 00:00:00 2001 From: Cayman Date: Mon, 22 Jul 2024 17:09:51 -0400 Subject: [PATCH] chore: fix web test --- karma.conf.cjs | 1 + webpack.config.cjs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/karma.conf.cjs b/karma.conf.cjs index 9510986..bbbba45 100644 --- a/karma.conf.cjs +++ b/karma.conf.cjs @@ -23,6 +23,7 @@ module.exports = function (config) { resolve: webpackConfig.resolve, experiments: webpackConfig.experiments, optimization: webpackConfig.optimization, + externals: webpackConfig.externals, stats: {warnings:false}, }, reporters: ["spec"], diff --git a/webpack.config.cjs b/webpack.config.cjs index 7c0991d..360cd5b 100644 --- a/webpack.config.cjs +++ b/webpack.config.cjs @@ -29,6 +29,9 @@ module.exports = { child_process: false, }, }, + externals: { + "@chainsafe/blst": {} + }, experiments: { topLevelAwait: true, },