profile
viewpoint

Ask questionsSupport import maps

It would be nice to have simple import maps

While the feature is not ready in some browsers and flagged in others, I would propose a UI to define such a map so that bare imports in the code are adjusted.

I would propose that a single entry such as "svelte": "https://jspm.dev/svelte@3" would also transparently handle subpaths so that in code I can write

-import svelte from 'https://jspm.dev/svelte@3'
-import store from 'https://jspm.dev/svelte@3/store'
+import svelte from 'svelte'
+import store from 'svelte/store'
jsfiddle/jsfiddle-issues

Answer questions oskarkrawczyk

Added to roadmap. Thanks!

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List