It seems that as of now, this is not possible, chrome will log the following in the dev tools: Ignored an import map key "std:kv-storage": Invalid key (non-fetch scheme)
Coding is as much a matter of personal growth as it is of logic and control-flow. I keep patience, curiosity, & exuberance in the same toolbox as vim and git.
*Opinions posted are my own*
This import maps things is pretty cool! When you used it to polyfill
kv-storage
you used/web_modules/kv-storage-polyfill.js
as the initial call:Would it be possible to go the other way:
Which would allow the seemingly more “correct”
import { StorageArea } from ‘std:kv-storage’
? Or maybe “long lasting” is the better word…It seems that as of now, this is not possible, chrome will log the following in the dev tools:
Ignored an import map key "std:kv-storage": Invalid key (non-fetch scheme)
Even though, according to the spec that should be possible yeah: github.com/WICG/import-maps#for-bu...
What about importception
Then in use
Would that work?
Hehe, that'll still result in:
Ignored an import map key "std:kv-storage": Invalid key (non-fetch scheme)
What a shame...the future can't come fast enough!