-
Notifications
You must be signed in to change notification settings - Fork 185
WhatWG Loader Spec Blocking Issues #381
Comments
what about mappings, as in whatwg/loader#20? |
Yes it would actually be good to confirm if there are or aren't wildcards in the sites table. Apart from that, it's a specified system. It does bring up another point - which is that we now need a certain level of guarantee over how stable and backwards-compatible the spec itself is, as we start to rely on it more. |
inline
default loader instance will be under
Partially solved.
hooks are instance methods, whether you set up hooks on the default loader instance (System.loader) or a custom loader instance, it is up to user. |
@guybedford - no hurry, of course, but if and when you have a moment I'd be interested to know how you see the current status. Item 1 on the list, for example, refers to issue 52, which is now closed. In more general terms, as the spec now has different milestones, I'm wondering whether having a 1.0 still makes sense, or whether it wouldn't be better to phase implementation to match those milestones. |
@probins I think we should get out a 0.20 (a nice round number), that implements the features of the loader spec as it is now. We should of course aim to separate things like the module reflection API, which can probably be added later, but the core implementation should be just the update of what we have here I think. Getting the <script type="module"> support in parity with the spec would certainly be important too (although it mostly is already, it's the edge cases that need work!). I don't think this project should "shink" too much though. If we just implemented the first step of the roadmap, that would be a step backwards here. |
good point :-) So perhaps just continue in evolutionary mode, rather than aiming for one large 1.0. Even when the spec is finalised, it wouldn't surprise me at all if later changes are needed once people start implementing it in the real world.
|
Exactly, rather get an ok 0.20.0 out sooner and then keep iterating than try to make it a big major release. We've almost got that branch running to spec anyway, so we should in theory be pretty close to that. Yes the module tag is making some great progress. Also contributions to help move this project forward would be incredibly welcome. It's been great to see the PRs from @joeldenning. |
I see Domenic has just merged module script into whatwg/html |
The release of the new specification work (on the 1.0 branch here), is pending the clarification of the following spec issues:
locate
hook? See Why a locate hook is unnecessary whatwg/loader#52.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).Reflect.Loader
orReflect.loader.constructor
?Reflect.Loader
import.default
andimport.namespace
. So will the top-levelReflect.loader.import
function return a namespace only?Reflect.loader.hook('normalize', normalize)
or both? Instance methods set via the setter.'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.
The text was updated successfully, but these errors were encountered: