esm: Modify getFormat and getSource loader hooks
This PR aims to amend the current behavior of the getFormat
and getSource
experimental loader hooks by allowing getSource
to optionally override the format of the source that had been defined by getFormat
.
This is an active WIP ; I am working under the guidance of contributor @jkrems
Checklist
-
make -j4 test
(UNIX) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines