Skip to content

Add new TC39 proposal: Import Text#57

Merged
tantek merged 4 commits intomozilla:mainfrom
eemeli:tc39-import-text
Oct 25, 2025
Merged

Add new TC39 proposal: Import Text#57
tantek merged 4 commits intomozilla:mainfrom
eemeli:tc39-import-text

Conversation

@eemeli
Copy link
Copy Markdown
Member

@eemeli eemeli commented Oct 21, 2025

This adds a new proposal that I'd like to advance at TC39. As per the instructions, I've gotten prior approval from @dminor and @martinthomson to submit this.

I've left out the outline of a proposed solution and further sections, as doing so is required for a TC39 proposal, but it should be noted that this particular proposal is a direct reaction to the Import Bytes proposal advancing rapidly at TC39. Therefore, the expected form of the solution would be to allow for this to work:

import text from "path/to/file.txt" with { type: "text" };

If possible, I'd like to present this to TC39 at its next meeting, for which the agenda submission deadline is on 7 November.

@eemeli eemeli requested a review from a team as a code owner October 21, 2025 06:12
@eemeli
Copy link
Copy Markdown
Member Author

eemeli commented Oct 21, 2025

@dminor Given the process change in #58, should I add the elided sections to this PR?

@dminor
Copy link
Copy Markdown
Contributor

dminor commented Oct 21, 2025

@dminor Given the process change in #58, should I add the elided sections to this PR?

Yes, please do.

@eemeli
Copy link
Copy Markdown
Member Author

eemeli commented Oct 22, 2025

@dminor Done. Because I prepared the commit previously, GitHub's timeline puts it before our comments above.

Copy link
Copy Markdown
Member

@tantek tantek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs an explicit user-perspective benefit summary sentence or two at the top per our Explainer sections. Like does it improve performance for users, or reliability (fewer bugs), or some other preferably more specific user-centric improvement?

@eemeli eemeli requested a review from tantek October 24, 2025 10:40
Copy link
Copy Markdown
Member

@tantek tantek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this is a good start. Let's land and iterate.

@tantek tantek merged commit 4402842 into mozilla:main Oct 25, 2025
@eemeli eemeli deleted the tc39-import-text branch October 25, 2025 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants