chore: update vm module warning (#44985)
* chore: update vm module warning * Update lib/renderer/init.ts Co-authored-by: Keeley Hammond <vertedinde@electronjs.org> --------- Co-authored-by: Keeley Hammond <vertedinde@electronjs.org>
This commit is contained in:
parent
2191e9b8e1
commit
6961e9458a
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ const Module = require('module') as NodeJS.ModuleInternal;
|
|||
const originalModuleLoad = Module._load;
|
||||
Module._load = function (request: string) {
|
||||
if (request === 'vm') {
|
||||
console.warn('The vm module of Node.js is deprecated in the renderer process and will be removed.');
|
||||
console.warn('The vm module of Node.js is unsupported in Electron\'s renderer process due to incompatibilities with the Blink rendering engine. Crashes are likely and avoiding the module is highly recommended. This module may be removed in a future release.');
|
||||
}
|
||||
return originalModuleLoad.apply(this, arguments as any);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue