this plugin lets you resolve jsr-package resources (which begin with the "jsr:" specifier) to an "https://" url path.
after that, the httpPlugin will re-resolve the url, and then load/fetch the desired resource.
check the interface JsrPluginSetupConfig to understand what configuration options are available to you.
example: "jsr:@oazmi/kitchensink@^0.9.8/pathman" will be resolved to "https://jsr.io/@oazmi/kitchensink/0.9.8/src/pathman.ts".
in addition, the import-map resolver of the package will be saved into pluginData.runtimePackage,
allowing for subsequent imports from within this package to be resolved via pluginData.runtimePackage.resolveImport(...).
this plugin lets you resolve jsr-package resources (which begin with the
"jsr:"
specifier) to an"https://"
url path. after that, the httpPlugin will re-resolve the url, and then load/fetch the desired resource. check the interface JsrPluginSetupConfig to understand what configuration options are available to you.example:
"jsr:@oazmi/kitchensink@^0.9.8/pathman"
will be resolved to"https://jsr.io/@oazmi/kitchensink/0.9.8/src/pathman.ts"
. in addition, the import-map resolver of the package will be saved intopluginData.runtimePackage
, allowing for subsequent imports from within this package to be resolved viapluginData.runtimePackage.resolveImport(...)
.