Skip to content

Commit 1fa65db

Browse files
authored
Make browser tests work again. (#1609)
1 parent dadd73f commit 1fa65db

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

jsonrpc/src/browser/test/webpack.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88
'use strict';
99

1010
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
11+
const webpack = require('webpack');
1112

1213
module.exports = [{
1314
context: __dirname,
1415
mode: 'none',
1516
target: 'webworker',
1617
plugins: [
17-
new NodePolyfillPlugin()
18+
new NodePolyfillPlugin(),
19+
new webpack.DefinePlugin({
20+
'process.env.NODE_DEBUG': JSON.stringify(''),
21+
})
1822
],
1923
resolve: {
2024
mainFields: ['module', 'main'],

protocol/src/browser/test/webpack.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88
'use strict';
99

1010
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
11+
const webpack = require('webpack');
1112

1213
module.exports = [{
1314
context: __dirname,
1415
mode: 'none',
1516
target: 'webworker',
1617
plugins: [
17-
new NodePolyfillPlugin()
18+
new NodePolyfillPlugin(),
19+
new webpack.DefinePlugin({
20+
'process.env.NODE_DEBUG': JSON.stringify(''),
21+
})
1822
],
1923
resolve: {
2024
mainFields: ['module', 'main'],

0 commit comments

Comments
 (0)