feat: support node: prefixed requires in sandboxed renderer preloads (#38567)
		
	feat: support node: prefixed requires in sandboxed renderer preloads
This commit is contained in:
		
					parent
					
						
							
								fd5e6fbc14
							
						
					
				
			
			
				commit
				
					
						5d123765d9
					
				
			
		
					 4 changed files with 17 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -51,6 +51,12 @@ but can only import a subset of Electron and Node's built-in modules:
 | 
			
		|||
* [`timers`](https://nodejs.org/api/timers.html)
 | 
			
		||||
* [`url`](https://nodejs.org/api/url.html)
 | 
			
		||||
 | 
			
		||||
[node: imports](https://nodejs.org/api/esm.html#node-imports) are supported as well:
 | 
			
		||||
 | 
			
		||||
* [`node:events`](https://nodejs.org/api/events.html)
 | 
			
		||||
* [`node:timers`](https://nodejs.org/api/timers.html)
 | 
			
		||||
* [`node:url`](https://nodejs.org/api/url.html)
 | 
			
		||||
 | 
			
		||||
In addition, the preload script also polyfills certain Node.js primitives as globals:
 | 
			
		||||
 | 
			
		||||
* [`Buffer`](https://nodejs.org/api/buffer.html)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue