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
is more generic with its globbing syntax and would allow more possibilities, but is thus also more complicated. The idea in this issue specifically focuses on extensions, and a way to specify them without a globbing syntax, similar to scopes.
@michaelficarra nothing except changing the URL of the file being fetched, just like all else in an importmap. It has no effect on mime types, importmaps are all about mapping URLs. (right?)
It can be annoying when using vanilla modules, and some library ships their code with extensionless specifiers.
Some ways to solve the issue:
ServiceWorker
to an app, and have it add extensions to intercepted URLs. But it's a bit overkill.Perhaps it would be nice if there were a way to solve this in importmaps. This would be the easiest for end devs.
Here's a random idea to get the idea across, without too much thought:
perhaps similar to how scopes are defined.
The text was updated successfully, but these errors were encountered: