File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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'),
You can’t perform that action at this time.
0 commit comments