You can now import a file as a JavaScript string using the new text import attribute.

This feature is currently supported in Bun, Deno and Firefox Nightly.