Skip to content
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
@guybedford

Description

@guybedford

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 like System.loader for the instance and Reflect.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 or Reflect.loader.constructor? Reflect.Loader
  • It is looking likely contextual loading will be via import.default and import.namespace. So will the top-level Reflect.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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions