WICG / import-maps

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

Typo in README: semicolon in object notation #255

Closed tondi closed 2 years ago

tondi commented 2 years ago

https://github.com/WICG/import-maps#dynamic-import-map-example

index 2846097..6de91e7 100644
--- a/README.md
+++ b/README.md
@@ -389,7 +389,7 @@ const im = document.createElement('script');
 im.type = 'importmap';
 im.textContent = JSON.stringify({
   imports: {
-    'my-library': Math.random() > 0.5 ? '/my-awesome-library.mjs' : '/my-rad-library.mjs';
+    'my-library': Math.random() > 0.5 ? '/my-awesome-library.mjs' : '/my-rad-library.mjs'
   }
 });
 document.currentScript.after(im);