Skip to content

Commit f3b54f0

Browse files
fix: swap mismatched console.log calls in importing_bytes example (#3117)
Co-authored-by: lunadogbot <lunadogbot@users.noreply.github.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
1 parent f588f0e commit f3b54f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/scripts/importing_bytes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
// Binary files can be imported in JS and TS modules. When doing so, you need to
1818
// specify the `type: "bytes"` import attribute.
1919
import bytes from "./image.png" with { type: "bytes" };
20-
console.log(text);
20+
console.log(bytes);
2121

2222
// Dynamic imports are also supported.
2323
const text = await import("./image.png", {
2424
with: { type: "bytes" },
2525
});
26-
console.log(bytes);
26+
console.log(text);
2727

2828
/* File: ./image.png
2929
89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52

0 commit comments

Comments
 (0)