Skip to content

Commit 738c414

Browse files
authored
Why not a phase? (#19)
- Related to #16
1 parent 6398451 commit 738c414

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,15 @@ ReadableStream is part of the WHATWG [Streams](https://streams.spec.whatwg.org),
163163

164164
See discussion in Issue https://github.com/styfle/proposal-import-bytes/issues/3
165165

166+
### Why not a phase?
167+
168+
This proposal does not attempt to introduce a new phase like the [source](https://github.com/tc39/proposal-source-phase-imports) or [asset](https://github.com/tc39/proposal-asset-references) proposals.
169+
170+
* A new phase would require a syntax change to JavaScript
171+
* A new phase would cause `Sec-Fetch-Dest` to be script instead of empty
172+
173+
See discussion in Issue https://github.com/tc39/proposal-import-bytes/issues/16
174+
166175
### Why `type: bytes`?
167176

168177
The `bytes()` method is familiar to those using [Response.bytes()](https://developer.mozilla.org/en-US/docs/Web/API/Response/bytes) or newer [Blob.bytes()](https://developer.mozilla.org/en-US/docs/Web/API/Blob/bytes) which both return Uint8Array.

0 commit comments

Comments
 (0)