Title: Support for importing text modules · Issue #62082 · nodejs/node · GitHub
Open Graph Title: Support for importing text modules · Issue #62082 · nodejs/node
X Title: Support for importing text modules · Issue #62082 · nodejs/node
Description: The TC39 proposal import-text and whatwg/html#11933 are adding support for a new import type: import text from "path/to/file.txt" with { type: "text" }; This would parse the imported file as UTF-8, and make its value available as a JS St...
Open Graph Description: The TC39 proposal import-text and whatwg/html#11933 are adding support for a new import type: import text from "path/to/file.txt" with { type: "text" }; This would parse the imported file as UTF-8,...
X Description: The TC39 proposal import-text and whatwg/html#11933 are adding support for a new import type: import text from "path/to/file.txt" with { type: "text" }; This would parse the imp...
Opengraph URL: https://github.com/nodejs/node/issues/62082
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for importing text modules","articleBody":"The [TC39 proposal import-text](https://github.com/tc39/proposal-import-text) and whatwg/html#11933 are adding support for a new import type:\n\n```js\nimport text from \"path/to/file.txt\" with { type: \"text\" };\n```\n\nThis would parse the imported file as UTF-8, and make its value available as a JS String.\n\nTests for this are being added in tc39/test262#4607 and web-platform-tests/wpt#56812.\n\nIn Deno, support for this is already available with `--unstable-raw-imports`.","author":{"url":"https://github.com/eemeli","@type":"Person","name":"eemeli"},"datePublished":"2026-03-03T10:07:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/62082/node/issues/62082"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:52f84f70-448c-9aed-d342-8f63de19f999 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A578:2007B4:915D33:C5ADC8:6A4D6E86 |
| html-safe-nonce | 7488c9fefcccd519782ee1589285211d4daca41c5fdcff9d0f73df698635e3d9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTc4OjIwMDdCNDo5MTVEMzM6QzVBREM4OjZBNEQ2RTg2IiwidmlzaXRvcl9pZCI6IjM0NTczODgxNjMyNjkyMjYxMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 07b75eba02be307e4d59be741724cfc00e2dfd8e694fae1d45261b880c52af94 |
| hovercard-subject-tag | issue:4015801244 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/62082/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5bf71560abbdc4446139fda27cafe8ed218542c4dd15382138f1c39c3852d8ce/nodejs/node/issues/62082 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5bf71560abbdc4446139fda27cafe8ed218542c4dd15382138f1c39c3852d8ce/nodejs/node/issues/62082 |
| og:image:alt | The TC39 proposal import-text and whatwg/html#11933 are adding support for a new import type: import text from "path/to/file.txt" with { type: "text" }; This would parse the imported file as UTF-8,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eemeli |
| hostname | github.com |
| expected-hostname | github.com |
| None | c78260c7b3f4ac4b0356c8208537f05406a3a2d46a9ec3f735b372dcc519c39e |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 399fff412f48461d435721c009efc17ea44be72f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width