Suggestion
The new ES2022 standard allows to use string literals in module exports and imports:
import{"\0 any unicode"asfoo}from"";export{fooas"\0 any unicode"};Ref: tc39/ecma262#2154
This feature is supported in NodeJS since v16(2021) and I have been using this feature but typescript complains about invalid syntax and I don't see this feature in the roadmap?.
🔍 Search Terms
String literals import and export
✅ Viability Checklist
My suggestion meets these guidelines:
Suggestion
The new ES2022 standard allows to use string literals in module exports and imports:
Ref: tc39/ecma262#2154
This feature is supported in NodeJS since v16(2021) and I have been using this feature but typescript complains about invalid syntax and I don't see this feature in the roadmap?.
🔍 Search Terms
String literals import and export
✅ Viability Checklist
My suggestion meets these guidelines: