jspm / generator

JSPM Import Map Generator
Apache License 2.0
167 stars 21 forks source link

feat: getPackageBase generator API #93

Closed guybedford closed 2 years ago

guybedford commented 2 years ago

This adds a new static getPackageBase API for getting the package base URL of any arbitrary module URL.

This primitive should be sufficient to determine directory package download groupings.

In order to get the tests passing this PR also ended up doing a bunch of bug fixes around # imports, URL and node: resolutions.