This repository was archived by the owner on Jul 13, 2020. It is now read-only.
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
WhatWG Loader Spec Blocking Issues #381
Closed
Description
The release of the new specification work (on the 1.0 branch here), is pending the clarification of the following spec issues:
- Will there be a
locate
hook? See Why a locate hook is unnecessary whatwg/loader#52. - Load metadata - is there still a metadata object passed as a last argument to hooks, or will implementations need to maintain a private store keyed by resolved name for this?
- Is the global loader called
Reflect.loader
? Looking likeSystem.loader
for the instance andReflect.Loader
for the class currently (http s://github.com/names for Loader constructor and default loader whatwg/loader#34#issuecomment-127701746). - For extending the loader, do we extend
Reflect.Loader
orReflect.loader.constructor
?Reflect.Loader
- It is looking likely contextual loading will be via
import.default
andimport.namespace
. So will the top-levelReflect.loader.import
function return a namespace only? - Hook syntax - are hooks class methods, created via
Reflect.loader.hook('normalize', normalize)
or both? Instance methods set via the setter. - Sites table - will wildcards be permitted like paths configurations (eg
'jquery/*' -> '/path/*'
)
Most importantly, with all the above, some idea of the stability and backwards compatibility of the spec is important to ensure we're aligning with user needs.