Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support ECMA-262 arbitrary non-identifier module export names #54733

Closed
Labels
Fix AvailableA PR has been opened for this issue
@guybedford

Description

@guybedford

Suggestion

🔍 Search Terms

string exports, arbitrary identifier namespace names

✅ Viability Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
  • This feature would agree with the rest ofTypeScript's Design Goals.

⭐ Suggestion

📃 Motivating Example

Example valid ECMA262 code that fails:

import { "some name" as impt } from 'external';export { impt as "other name" }

See:

https://www.typescriptlang.org/play?ts=5.2.0-dev.20230621#code/KYDwDg9gTgLgBAbzmOBDAznARAC2AG3wjgHdp8ATLOAXyA

💻 Use Cases

Allow TypeScript to support non-identifier export names per ECMA-262 support (tc39/ecma262#2154).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fix AvailableA PR has been opened for this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp