From 40d779a7f331291304d7f06312be0491c0429643 Mon Sep 17 00:00:00 2001 From: Mark Lee Date: Thu, 11 Mar 2021 23:42:15 -0800 Subject: [PATCH] docs(breaking-changes): contextIsolation disables require in renderer (#28087) * docs(breaking-changes): contextIsolation disables require in renderer * docs: consistency --- docs/breaking-changes.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/breaking-changes.md b/docs/breaking-changes.md index f3128cf33518..23c0c9cf09a2 100644 --- a/docs/breaking-changes.md +++ b/docs/breaking-changes.md @@ -160,6 +160,9 @@ the previous behavior, `contextIsolation: false` must be specified in WebPrefere We [recommend having contextIsolation enabled](https://github.com/electron/electron/blob/master/docs/tutorial/security.md#3-enable-context-isolation-for-remote-content) for the security of your application. +Another implication is that `require()` cannot be used in the renderer process unless +`nodeIntegration` is `true` and `contextIsolation` is `false`. + For more details see: https://github.com/electron/electron/issues/23506 ### Removed: `crashReporter.getCrashesDirectory()`