From a11aed5701ea474b6dc557f0bfef93b848488362 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 20 Aug 2025 10:35:31 +0900 Subject: [PATCH] Make dynamic and static import examples consistent This was probably a small factor in my confusion in #17. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ee55ce..185942f 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Developers will then be able to import the bytes as follows: ```js import bytes from "./photo.png" with { type: "bytes" }; -import("./photo.png", { with: { type: "bytes" } }); +const bytes = import("./photo.png", { with: { type: "bytes" } }); ``` The bytes are returned as a `Uint8Array` backed by an [immutable arraybuffer](https://github.com/tc39/proposal-immutable-arraybuffer).