electron/lib/renderer
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
..
api refactor: bundle the browser and renderer process electron code (#18553) 2019-06-02 13:03:03 -07:00
extensions chore: remove unused catch bindings (#16121) 2019-02-21 09:26:07 +00:00
web-view chore: remove promisification deprecation callbacks (#17907) 2019-04-30 07:08:32 -07:00
callbacks-registry.js chore: rename atomBinding to electronBinding (#17419) 2019-03-18 12:37:06 -07:00
chrome-api.ts fix: honor extensionId arg in chrome.runtime.connect (#16998) 2019-05-02 11:42:04 +09:00
content-scripts-injector.ts fix: ensure dots in content script patterns aren't used as wildcards (#17593) 2019-03-28 14:03:37 -07:00
init.ts refactor: bundle the browser and renderer process electron code (#18553) 2019-06-02 13:03:03 -07:00
inspector.ts refactor: make ELECTRON_INSPECTOR_CONTEXT_MENU handler async (#17411) 2019-03-19 10:37:43 -07:00
ipc-renderer-internal-utils.ts refactor: add ipcMainUtils.invokeInWebContents / ipcRendererUtils.handle helpers (#17313) 2019-03-13 12:03:17 -07:00
ipc-renderer-internal.ts refactor: use mojo for electron internal IPC (#17406) 2019-04-02 15:38:16 -07:00
security-warnings.ts refactor: bundle the browser and renderer process electron code (#18553) 2019-06-02 13:03:03 -07:00
web-frame-init.ts feat: promisify executeJavaScript (#17312) 2019-03-14 12:08:54 -07:00
webpack-provider.ts refactor: bundle the browser and renderer process electron code (#18553) 2019-06-02 13:03:03 -07:00
window-setup.ts refactor: add invoke helpers in window-setup (#18233) 2019-05-18 20:52:29 +02:00