Skip to content

Commit e1c33d8

Browse files
committed
forgot to save a webpack change. hoping it will fix the one failing test case
1 parent 4fa90ec commit e1c33d8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/webpack.web.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,15 @@ module.exports = (env, argv) => {
7171
perf_hooks: false, // should be using globalThis.performance instead
7272
// *** If one of these modules actually gets used an error will be raised ***
7373
// You may see something like: "TypeError: path_ignored_0.join is not a function"
74-
74+
// Handle node: protocol imports
75+
'node:events': require.resolve('events'),
76+
'node:fs': false,
77+
'node:path': require.resolve('path-browserify'),
78+
'node:util': require.resolve('util'),
79+
'node:os': require.resolve('os-browserify/browser'),
80+
'node:stream': require.resolve('stream-browserify'),
81+
'node:crypto': require.resolve('crypto-browserify'),
82+
'node:assert': require.resolve('assert'),
7583
// We don't need these yet, but as we start enabling functionality in the web
7684
// we may need to polyfill.
7785
http: false, // http: require.resolve('stream-http'),

0 commit comments

Comments
 (0)