You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2023. It is now read-only.
istanbuljs/nyc#1320 will add rudimentary support for nyc --all including ES modules. I think to complete support I need the ability to retrieve the source which would eventually be executed for an import() of an absolute file URL without actually executing it.
I'm not sure how much of the loader hook API is needed. For example a single async function esmGetSource(specifier, context) would be enough to support what nyc needs. I'm not sure if other potential users would need the individual loader hook functions to run each step of resolve, getFormat, getSource and finally transformSource. nyc would need to know the context.url given to transformSource as well as the source code produced after transformSource ran.
istanbuljs/nyc#1320 will add rudimentary support for
nyc --allincluding ES modules. I think to complete support I need the ability to retrieve the source which would eventually be executed for animport()of an absolute file URL without actually executing it.I'm not sure how much of the loader hook API is needed. For example a single
async function esmGetSource(specifier, context)would be enough to support what nyc needs. I'm not sure if other potential users would need the individual loader hook functions to run each step of resolve, getFormat, getSource and finally transformSource. nyc would need to know thecontext.urlgiven totransformSourceas well as the source code produced aftertransformSourceran.