WICG / import-maps

How to control the behavior of JavaScript imports
https://html.spec.whatwg.org/multipage/webappapis.html#import-maps
Other
2.69k stars 70 forks source link

jsonc with import maps #264

Closed Yaikava closed 2 years ago

Yaikava commented 2 years ago

It would be nice to allow usage of .jsonc files for import maps so we can have comments in them.

I can see it being usefull in Deno for example. https://github.com/denoland/deno/issues/12993#issue-1071304460

ljharb commented 2 years ago

Is there a facility in the browser to serialize and unserialize that format?

Yaikava commented 2 years ago

Is there a facility in the browser to serialize and unserialize that format?

I have no idea about these stuff. Sorry

domenic commented 2 years ago

This is best done by compiling your JSONC into JSON.