electron/shell/common/gin_helper
Samuel Attard ac031bf8de
feat: I guess it's esm (#37535)
* fix: allow ESM loads from within ASAR files

* fix: ensure that ESM entry points finish loading before app ready

* fix: allow loading ESM entrypoints via default_app

* fix: allow ESM loading for renderer preloads

* docs: document current known limitations of esm

* chore: add patches to support blending esm handlers

* refactor: use SetDefersLoading instead of JoinAppCode in renderers

Blink has it's own event loop so pumping the uv loop in the renderer is not enough, luckily in blink we can suspend the loading of the frame while we do additional work.

* chore: add patch to expose SetDefersLoading

* fix: use fileURLToPath instead of pathname

* chore: update per PR feedback

* fix: fs.exists/existsSync should never throw

* fix: convert path to file url before importing

* fix: oops

* fix: oops

* Update docs/tutorial/esm-limitations.md

Co-authored-by: Jeremy Rose <jeremya@chromium.org>

* windows...

* windows...

* chore: update patches

* spec: fix tests and document empty body edge case

* Apply suggestions from code review

Co-authored-by: Daniel Scalzi <d_scalzi@yahoo.com>
Co-authored-by: Jeremy Rose <jeremya@chromium.org>

* spec: add tests for esm

* spec: windows

* chore: update per PR feedback

* chore: update patches

* Update shell/common/node_bindings.h

Co-authored-by: Jeremy Rose <jeremya@chromium.org>

* chore: update patches

* rebase

* use cjs loader by default for preload scripts

* chore: fix lint

* chore: update patches

* chore: update patches

* chore: fix patches

* build: debug depshash

* ?

* Revert "build: debug depshash"

This reverts commit 0de82523fb93f475226356b37418ce4b69acdcdf.

* chore: allow electron as builtin protocol in esm loader

* Revert "Revert "build: debug depshash""

This reverts commit ff86b1243ca6d05c9b3b38e0a6d717fb380343a4.

* chore: fix esm doc

* chore: update node patches

---------

Co-authored-by: Jeremy Rose <jeremya@chromium.org>
Co-authored-by: electron-patch-conflict-fixer[bot] <83340002+electron-patch-conflict-fixer[bot]@users.noreply.github.com>
Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
Co-authored-by: Daniel Scalzi <d_scalzi@yahoo.com>
2023-08-30 17:38:07 -07:00
..
accessor.h chore: enable check raw ptr fields (#38167) 2023-05-11 16:07:39 -04:00
arguments.cc
arguments.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
callback.cc refactor: add gin_helper::Dictionary::CreateEmpty() helper (#39547) 2023-08-21 10:43:41 +09:00
callback.h chore: bump chromium to 111.0.5544.3 (main) (#36820) 2023-02-03 12:43:42 +01:00
cleaned_up_at_exit.cc
cleaned_up_at_exit.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
constructible.h fix: set prototype names on gin::Constructible classes (#39006) 2023-07-10 11:49:20 +02:00
constructor.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
destroyable.cc
destroyable.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
dictionary.h refactor: add gin_helper::Dictionary::CreateEmpty() helper (#39547) 2023-08-21 10:43:41 +09:00
error_thrower.cc
error_thrower.h chore: enable check raw ptr fields (#38167) 2023-05-11 16:07:39 -04:00
event.cc refactor: simplify events (#37099) 2023-02-13 13:39:18 -08:00
event.h fix: set prototype names on gin::Constructible classes (#39006) 2023-07-10 11:49:20 +02:00
event_emitter.h refactor: simplify events (#37099) 2023-02-13 13:39:18 -08:00
event_emitter_caller.cc chore: enable microtask queue per window agent (#36870) 2023-01-12 01:59:32 +09:00
event_emitter_caller.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
event_emitter_template.cc refactor: simplify events (#37099) 2023-02-13 13:39:18 -08:00
event_emitter_template.h refactor: simplify events (#37099) 2023-02-13 13:39:18 -08:00
function_template.cc
function_template.h chore: enable check raw ptr fields (#38167) 2023-05-11 16:07:39 -04:00
function_template_extensions.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
locker.cc fix: crash in utilityProcess when generating code from strings (#38014) 2023-04-20 09:27:02 +09:00
locker.h feat: I guess it's esm (#37535) 2023-08-30 17:38:07 -07:00
microtasks_scope.cc fix: crash in utilityProcess when generating code from strings (#38014) 2023-04-20 09:27:02 +09:00
microtasks_scope.h chore: enable microtask queue per window agent (#36870) 2023-01-12 01:59:32 +09:00
object_template_builder.cc
object_template_builder.h chore: enable check raw ptr fields (#38167) 2023-05-11 16:07:39 -04:00
persistent_dictionary.cc
persistent_dictionary.h chore: enable check raw ptr fields (#38167) 2023-05-11 16:07:39 -04:00
pinnable.h chore: stop using v8::Locker everywhere (#34078) 2022-05-05 11:50:21 -07:00
promise.cc fix: crash in utilityProcess when generating code from strings (#38014) 2023-04-20 09:27:02 +09:00
promise.h chore: enable check raw ptr fields (#38167) 2023-05-11 16:07:39 -04:00
trackable_object.cc chore: fix clang-tidy warnings (#38079) 2023-04-26 10:09:54 -04:00
trackable_object.h chore: bump chromium to 111.0.5544.3 (main) (#36820) 2023-02-03 12:43:42 +01:00
wrappable.cc chore: bump chromium to 111.0.5544.3 (main) (#36820) 2023-02-03 12:43:42 +01:00
wrappable.h chore: bump chromium to 111.0.5544.3 (main) (#36820) 2023-02-03 12:43:42 +01:00
wrappable_base.h chore: enable check raw ptr fields (#38167) 2023-05-11 16:07:39 -04:00