Closed tondi closed 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);
https://github.com/WICG/import-maps#dynamic-import-map-example