Skip to content

Commit

Permalink
Make browser tests work again. (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer authored Feb 4, 2025
1 parent dadd73f commit 1fa65db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion jsonrpc/src/browser/test/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
'use strict';

const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
const webpack = require('webpack');

module.exports = [{
context: __dirname,
mode: 'none',
target: 'webworker',
plugins: [
new NodePolyfillPlugin()
new NodePolyfillPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_DEBUG': JSON.stringify(''),
})
],
resolve: {
mainFields: ['module', 'main'],
Expand Down
6 changes: 5 additions & 1 deletion protocol/src/browser/test/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
'use strict';

const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
const webpack = require('webpack');

module.exports = [{
context: __dirname,
mode: 'none',
target: 'webworker',
plugins: [
new NodePolyfillPlugin()
new NodePolyfillPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_DEBUG': JSON.stringify(''),
})
],
resolve: {
mainFields: ['module', 'main'],
Expand Down

0 comments on commit 1fa65db

Please sign in to comment.