From 6961e9458a521ac76d7966e983e82c972d88d595 Mon Sep 17 00:00:00 2001 From: Sam Maddock Date: Wed, 11 Dec 2024 17:22:50 -0500 Subject: [PATCH] chore: update vm module warning (#44985) * chore: update vm module warning * Update lib/renderer/init.ts Co-authored-by: Keeley Hammond --------- Co-authored-by: Keeley Hammond --- lib/renderer/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/renderer/init.ts b/lib/renderer/init.ts index 7d53e0b79201b..2de705c3f2871 100644 --- a/lib/renderer/init.ts +++ b/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); };