Skip to content

Commit 28f1aef

Browse files
zcbenzkevinsawicki
authored andcommitted
Remove ELECTRON_HIDE_INTERNAL_MODULES in docs
1 parent fd432dd commit 28f1aef

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

docs/api/environment-variables.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,3 @@ Don't attach to current console session.
5252
## `ELECTRON_FORCE_WINDOW_MENU_BAR` _Linux_
5353

5454
Don't use global menu bar on Linux.
55-
56-
## `ELECTRON_HIDE_INTERNAL_MODULES`
57-
58-
Turns off compatibility mode for old built-in modules like `require('ipc')`.

docs/api/synopsis.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,25 +61,6 @@ const {app, BrowserWindow} = require('electron')
6161
However if you are using plain JavaScript, you have to wait until Chrome fully
6262
supports ES6.
6363

64-
## Disable old styles of using built-in modules
65-
66-
Before v0.35.0, all built-in modules have to be used in the form of
67-
`require('module-name')`, though it has [many disadvantages][issue-387], we are
68-
still supporting it for compatibility with old apps.
69-
70-
To disable the old styles completely, you can set the
71-
`ELECTRON_HIDE_INTERNAL_MODULES` environment variable:
72-
73-
```javascript
74-
process.env.ELECTRON_HIDE_INTERNAL_MODULES = 'true'
75-
```
76-
77-
Or call the `hideInternalModules` API:
78-
79-
```javascript
80-
require('electron').hideInternalModules()
81-
```
82-
8364
[gui]: https://en.wikipedia.org/wiki/Graphical_user_interface
8465
[destructuring-assignment]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
8566
[issue-387]: https://github.com/electron/electron/issues/387

0 commit comments

Comments
 (0)