Browse Source

chore: update vm module warning (#44985)

* chore: update vm module warning

* Update lib/renderer/init.ts

Co-authored-by: Keeley Hammond <[email protected]>

---------

Co-authored-by: Keeley Hammond <[email protected]>
Sam Maddock 4 months ago
parent
commit
6961e9458a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/renderer/init.ts

+ 1 - 1
lib/renderer/init.ts

@@ -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);
 };