We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0842adc commit a2361c1Copy full SHA for a2361c1
index.web.js
@@ -1,5 +1,8 @@
1
// In pure ESM web bundles, you must call init() and wait for the promised result before you can
2
// call any module methods. To make that as easy as possible, this module directly exposes the
3
// init() promise result, and returns the methods at the end of the promise.
4
-import init, * as brotliWasm from "./pkg.web/brotli_wasm";
+// https://github.com/WICG/import-maps?tab=readme-ov-file#extension-less-imports
5
+// For usage with an importmap, it's convenient to add the ".js" extension here, because browsers
6
+// don't try to guess the file extension.
7
+import init, * as brotliWasm from "./pkg.web/brotli_wasm.js";
8
export default init().then(() => brotliWasm);
0 commit comments