Comments (3)
This is specifically when the key ended with a slash, which follows from this part of the spec:
1. [=Report a warning to the console=] that an invalid address was given for the specifier key |specifierKey|; since |specifierKey| ended in a slash, the address needs to as well.
from import-maps.
@jkrems I see. So the specification (spec.bs) does mention it but the README does not. This formally addresses this issue statement. But before I close this issue, I must ask, was allowing query- & fragment parts of the address ever evaluated, and if so, why didn't it make it into the spec? If it wasn't evaluated, would it be reasonable to do that?
from import-maps.
You can combine them, e.g. if you are mapping "foo/": "bar/"
then foo/x?y#z
will map to bar/x?y#z
.
You cannot map "foo/": "bar?y#z"
because then foo/x
would map to bar?y#z/x
which is probably not what you intended.
(Also, reminder that RFC 3986 is obsolete and on the web we use https://url.spec.whatwg.org/.)
from import-maps.
Related Issues (20)
- "parse a URL-like import specifier", the term "import specifier" is a little bit confusing HOT 3
- Spec doesn't clearly define onerror must be called if import map is added after the 1st module load HOT 4
- In "the scriptโs type", the โ is actually an unicode U+2019, instead of an ascii ' HOT 2
- Typo in "A import map is a struct with two items:" HOT 2
- An empty map was create twice if "imports" or "scopes" exists HOT 2
- Modulepreload error caching HOT 9
- Should HTMLScriptElement.supports("importmap") return true? HOT 1
- Fire a load event or an error event when the script element of the import map is from an external file? HOT 2
- preparation-time document check should be done first at #register-an-import-map HOT 2
- Throwing TypeError in resolve a module specifier? HOT 2
- calling onerror of the script element if the import map string cannot be parsed HOT 1
- What should 'parse an import map string' return when it throws an Error? HOT 8
- Speculatively parsing with import map if there's a dynmic import before, HOT 4
- Official file extension? HOT 2
- Support stars in imports besides trailing slashes HOT 1
- `importmap` cannot resolve dependencies entered relatively. HOT 3
- [feat] `script.integrity` and import map HOT 2
- global variables (f.e. map `"jquery"` specifier to `globalThis.jquery` variable) HOT 1
- Specify package.json path in <script>, and then generate the import map from package.json. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from import-maps.