Skip to content

Local context lookup? #82

Answered by rubensworks
renyuneyun asked this question in Q&A
Discussion options

You must be logged in to vote

When Components.js encounters a context URL such as https://linkedsoftwaredependencies.org/bundles/npm/my-package/^2.0.0/components/context.jsonld, it will first try to resolve this context via the installed dependencies within your node_modules directory (which can be exposed by my-package). Only if it can not resolve this context locally, it will fallback to resolving the context by following the URL.

This local resolution can indeed be done via context overrides in the package.json as you pointed out. However, if you don't define a custom context override, but you add "lsd:module": true to your package.json, it will by default provide a context override for the context at components/co…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@renyuneyun
Comment options

Answer selected by renyuneyun
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants