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:
Specifications:
Platform Coverage:
all
Preference:
javascript.options.experimental.import_text
DevTools Bug:
n/a
Extensions Bug:
n/a
Use Counter:
n/a
Standards-Positions Discussion:
This is a proposal I've been advancing in TC39 and WHATWG since last November, and I'm now working on its implementation.