You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should be able to present a GUI tool at /~perla~/editor or something like that that allows the user to better edit their import map, either by them typing the import and us trying to get the correct import or if not at least just so we can ensure that the lock file is well formed json
This discussion was converted from issue #20 on September 29, 2021 01:19.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Adding packages is quite straight forward
but when a package has exports like lit
lit/directives/style-map.js
lit/directives/class-map.js
things get quite annoying, you have to manually edit the lock file. This is possible because the lock file is nothing more than the import map itself
depending on the source, we might be able to infer which is the url we're looking for i.e.
"lit": "https://cdn.skypack.dev/pin/[email protected]/mode=imports/optimized/lit.js"
vs
"lit/directives/style-map.js": "https://cdn.skypack.dev/pin/[email protected]/mode=imports/optimized/lit/directives/style-map.js",
skypack offers a quite straight forward, jspm isn't that far away
"lit": "https://ga.jspm.io/npm:[email protected]/index.js"
vs
"lit/directives/class-map.js": "https://ga.jspm.io/npm:[email protected]/directives/class-map.js"
We should be able to present a GUI tool at
/~perla~/editor
or something like that that allows the user to better edit their import map, either by them typing the import and us trying to get the correct import or if not at least just so we can ensure that the lock file is well formed jsonwe could also add a command
Beta Was this translation helpful? Give feedback.
All reactions