electron/docs/api
Samuel Attard bc527f6b51
refactor: bundle the browser and renderer process electron code (#18553)
* refactor: bundle the browser and renderer process electron code

* Bundles browser/init and renderer/init
  * Improves load performance of main process by ~40%
  * Improves load performance of renderer process by ~30%
* Prevents users from importing our "requiring" our internal logic such
as ipc-main-internal.  This makes those message buses safer as they are
less accessible, there is still some more work to be done though to lock
down those buses completely.
* The electron.asar file now only contains 2 files, as a future
improvement maybe we can use atom_natives to ship these two files
embedded in the binary
* This also removes our dependency on browserify which had some strange
edge cases that caused us to have to hack around require-order and
stopped us using certain ES6/7 features we should have been able to use
(async / await in some files in the sandboxed renderer init script)

TLDR: Things are faster and better :)

* fix: I really do not want to talk about it

* chore: add performance improvements from debugging

* fix: resolve the provided path so webpack thinks it is absolute

* chore: fixup per PR review

* fix: use webpacks ProvidePlugin to keep global, process and Buffer alive after deletion from global scope for use in internal code

* fix: bundle worker/init as well to make node-in-workers work

* chore: update wording as per feedback

* chore: make the timers hack work when yarn is not used
2019-06-02 13:03:03 -07:00
..
modernization refactor: set appLevelAppearance prop on systemPreferences (#18477) 2019-05-30 17:12:46 -07:00
structures feat: add ipcRenderer.invoke() (#18449) 2019-05-31 10:25:19 -07:00
accelerator.md feat: add support for scroll lock accelerator (#16873) 2019-02-11 09:13:13 -10:00
app.md feat: Add option to conditionally disable site instance patches (#18396) 2019-05-31 15:47:18 -07:00
auto-updater.md build: strip trailing whitespace in docs (#17488) 2019-03-20 13:12:47 -07:00
breaking-changes.md docs: replace the atom.io headers URL with electronjs.org (#18328) 2019-05-21 16:17:07 +09:00
browser-view.md build: move to the new docs parser (#18103) 2019-05-06 08:29:01 -07:00
browser-window-proxy.md
browser-window.md fix: docs/api/browser-window.md: fix typo (#18367) 2019-05-21 15:42:27 +09:00
chrome-command-line-switches.md chore: remove deprecated app.enableMixedSandbox() (#17894) 2019-04-23 21:07:40 -07:00
client-request.md
clipboard.md docs: clarify clipboard type options (#18107) 2019-05-06 08:11:47 -07:00
command-line.md build: move to the new docs parser (#18103) 2019-05-06 08:29:01 -07:00
content-tracing.md feat: [contentTracing] allow calling stopTracing() with no arguments (#18411) 2019-05-28 14:15:42 -07:00
cookies.md chore: remove promisification deprecation callbacks (#17907) 2019-04-30 07:08:32 -07:00
crash-reporter.md docs: clarify crash report extra param length (#18386) 2019-05-28 10:17:01 -07:00
debugger.md build: move to the new docs parser (#18103) 2019-05-06 08:29:01 -07:00
desktop-capturer.md build: move to the new docs parser (#18103) 2019-05-06 08:29:01 -07:00
dialog.md docs: remove obsolete callback argument from dialog.showOpenDialog() (#18496) 2019-05-30 12:00:22 +02:00
dock.md build: move to the new docs parser (#18103) 2019-05-06 08:29:01 -07:00
download-item.md feat: add methods to allow customization of save dialog during will-download event (#15497) 2018-11-08 10:51:06 -04:00
environment-variables.md refactor: remove hardcoded google api key (#15478) 2018-10-31 07:49:44 -07:00
file-object.md docs: es6ify 'Breaking Changes' and 'File' API pages (#15507) 2018-12-05 23:14:52 +11:00
frameless-window.md fix: incorrect view ordering for customButtonsOnHover (#15564) 2018-12-10 11:05:30 -08:00
global-shortcut.md chore: move ts-smoke tests to core (#16930) 2019-02-13 15:24:28 -08:00
in-app-purchase.md chore: remove promisification deprecation callbacks (#17907) 2019-04-30 07:08:32 -07:00
incoming-message.md
ipc-main.md feat: add ipcRenderer.invoke() (#18449) 2019-05-31 10:25:19 -07:00
ipc-renderer.md feat: add ipcRenderer.invoke() (#18449) 2019-05-31 10:25:19 -07:00
locales.md
menu-item.md docs: specify use case for the 'services' role (#18484) 2019-05-30 14:33:48 -07:00
menu.md docs: specify use case for the 'services' role (#18484) 2019-05-30 14:33:48 -07:00
native-image.md refactor: set appLevelAppearance prop on systemPreferences (#18477) 2019-05-30 17:12:46 -07:00
net-log.md refactor: netLog directly uses network service (#18289) 2019-05-23 15:31:38 -07:00
net.md fix: match net module headers & http.IncomingMessage headers (#17517) 2019-04-02 07:41:19 -07:00
notification.md
power-monitor.md chore: remove deprecated APIs (#18159) 2019-05-09 14:48:10 -04:00
power-save-blocker.md
process.md feat: add process.getBlinkMemoryInfo() (#17762) 2019-05-30 11:50:35 +02:00
protocol.md chore: remove promisification deprecation callbacks (#17907) 2019-04-30 07:08:32 -07:00
remote.md build: move to the new docs parser (#18103) 2019-05-06 08:29:01 -07:00
sandbox-option.md refactor: bundle the browser and renderer process electron code (#18553) 2019-06-02 13:03:03 -07:00
screen.md refactor: allow requiring modules with no side effects (#17496) 2019-04-30 09:46:08 +09:00
session.md docs: add parentheses + change lower case to upper case in some places (#18368) 2019-05-21 15:41:41 +09:00
shell.md refactor: make shell.OpenExternal async (#17135) 2019-05-03 13:53:45 -07:00
synopsis.md
system-preferences.md refactor: set appLevelAppearance prop on systemPreferences (#18477) 2019-05-30 17:12:46 -07:00
touch-bar-button.md
touch-bar-color-picker.md
touch-bar-group.md
touch-bar-label.md
touch-bar-popover.md
touch-bar-scrubber.md
touch-bar-segmented-control.md
touch-bar-slider.md
touch-bar-spacer.md
touch-bar.md build: move to the new docs parser (#18103) 2019-05-06 08:29:01 -07:00
tray.md build: move to the new docs parser (#18103) 2019-05-06 08:29:01 -07:00
web-contents.md fix: 'page-title-updated' event forwarding + documentation (#18270) 2019-05-16 12:33:16 +03:00
web-frame.md chore: remove deprecated APIs (#18159) 2019-05-09 14:48:10 -04:00
web-request.md docs: update type for responseHeaders in the webRequest module (#18302) 2019-05-15 18:20:37 -07:00
webview-tag.md build: move to the new docs parser (#18103) 2019-05-06 08:29:01 -07:00
window-open.md