Summary:
Add a new 'text' value for JavaScript's import type attribute,
with which a file may be imported as a string value:
import text from "path/to/file.txt" with { type: "text" };
Bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=2014230
Specifications:
- TC39: Stage 3 proposal <https://github.com/tc39/proposal-import-text>
- WHATWG: HTML Standard PR <https://github.com/whatwg/html/pull/11933>
(merged)
- WHATWG: Fetch Standard PR <https://github.com/whatwg/fetch/pull/1898>
(merged)
- W3C: Content Security Policy PR
<https://github.com/w3c/webappsec-csp/pull/794> (merged)
Platform Coverage:
all
Preference:
javascript.options.experimental.import_text
DevTools Bug:
n/a
Extensions Bug:
n/a
Use Counter:
n/a
Standards-Positions Discussion:
https://github.com/mozilla/explainers/pull/57
Other Browsers:
- Blink: considering (https://issues.chromium.org/issues/494350643)
- WebKit: considering (https://bugs.webkit.org/show_bug.cgi?id=310340)
web-platform-tests:
- web-platform-tests/wpt#56812
<https://github.com/web-platform-tests/wpt/pull/56812> (merged)
- web-platform-tests/wpt#59232
<https://github.com/web-platform-tests/wpt/pull/59232>
- tc39/test262#4607 <https://github.com/tc39/test262/pull/4607> (merged)
This is a proposal I've been advancing in TC39 and WHATWG since last
November, and I'm now working on its implementation.
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAMJ65nYk9FABbJ2GWBh%2BymPvq_wnrSPc8yY0%3DxQbyEQMRZMitQ%40mail.gmail.com.