electron/build
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
..
args chore: disable Vulkan validation layers (#17985) 2019-04-30 06:41:59 -07:00
config chore: add GN linting (#14678) 2018-10-03 18:03:26 -05:00
mac build: make make_locale_dirs idempotent (#15768) 2018-11-19 15:55:13 -08:00
webpack refactor: bundle the browser and renderer process electron code (#18553) 2019-06-02 13:03:03 -07:00
asar.gni refactor: remove js2asar.py and port logic to JS in more readable / GN-style way (#16718) 2019-02-05 12:10:15 -08:00
electron.def fix: allow renaming electron.exe (#15173) 2018-10-15 17:26:34 -07:00
install-build-deps.sh ci: migrate libcc's Dockerfile to electron and update it (#14786) 2018-09-25 15:30:22 -04:00
node.gni refactor: remove js2asar.py and port logic to JS in more readable / GN-style way (#16718) 2019-02-05 12:10:15 -08:00
npm-run.py chore: suppress output of npm_action unless it fails (#16888) 2019-02-12 21:32:47 -08:00
npm.gni build: ensure consistent lock files across multiple machines (#17955) 2019-04-30 13:59:47 -07:00
run-in-dir.py build: [gn] include node_modules in default_app asar 2018-07-25 11:45:22 -07:00
run-node.py refactor: remove js2asar.py and port logic to JS in more readable / GN-style way (#16718) 2019-02-05 12:10:15 -08:00
tsc.gni build: ensure consistent lock files across multiple machines (#17955) 2019-04-30 13:59:47 -07:00
zip.py ci: add check for dist zip file changes (#18446) 2019-05-29 09:40:02 -07:00