You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,12 @@ All of the import statements in the module graph that address the same module wi
81
81
82
82
The determination of whether the `type` attribute is part of the module cache key is left up to hosts (as it is for all import attributes).
83
83
84
+
For example, `import "foo"` and `import "foo" with { type: "buffer" }` may return the same module in one host, and different modules with another host. Both are valid implementations.
85
+
86
+
However, a dynamic import and a static import with the same `type` will return the same module, regardless of host.
87
+
88
+
See discussion in Issue https://github.com/styfle/proposal-import-bytes/issues/4
89
+
84
90
### Is there any prior art?
85
91
86
92
Deno 2.4 added support in [July 2025](https://deno.com/blog/v2.4) to inline a Uint8Array
0 commit comments