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
My loader analyzes source to determine module shape. It uses the nextResolve and nextLoad routines to access the source. To ensure correct results from these routines, I pass export conditions to them. They're extracted by the resolve hook.
asyncfunctionresolve(specifier,context,next){// Retain export conditions for analysisstate.conditions??=[...context.conditions]...
I think (?) export conditions are static across a run (modulo require vs import signaling which loader it's from).
It would be cleaner if there were some global access to these, so they don't need extracting.
My loader analyzes source to determine module shape. It uses the
nextResolve
andnextLoad
routines to access the source. To ensure correct results from these routines, I pass export conditions to them. They're extracted by theresolve
hook.I think (?) export conditions are static across a run (modulo
require
vsimport
signaling which loader it's from).It would be cleaner if there were some global access to these, so they don't need extracting.
The text was updated successfully, but these errors were encountered: