Skip to content

Allow Unicode string imports and exports #43870

Closed

Description

tc39/ecma262#2154

import { "😊" as yay } from "...";

yay();

export { yay as "🦈" };

The above code should be supported.

The minimum viable product should have tests for:

  • esnext module output
  • es2015 or similar module output just to get an error
  • --declaration emit
    • Specific declaration emit where the compiler might generate import() type syntax.
  • Quick info, and error message tests where we might generate import() type syntax
  • Completions in import {} and export {} lists
  • Go-to-definition

It is likely that we would never try to emit our own import() type syntax.

Activity

  1. added
    Suggestion
    Committed
    ES Next
    Domain: ES Modules
    on Apr 28, 2021
  2. Kingwl commented on Apr 30, 2021

    @Kingwl
    Contributor

    I’m happy to work on this (If Wesley Wigham (@weswigham) does not started)

  3. weswigham commented on Apr 30, 2021

    @weswigham
    Member

    I have not, and probably wouldn't until after the RC cut. If you do work on it, just keep in mind that something like #40708 we intend as a followup for this change, rather than a part of it. For this, we just wanna get the new syntax down, without expanding any TS syntax yet.

  4. ExE-Boss commented on May 8, 2021

    @ExE-Boss
    Contributor

    Duplicate of #40594

  5. added
    Duplicate
    and removed
    Committed
    Domain: ES Modules
    ES Next
    Suggestion
    on May 9, 2021
  6. added
    Fix Available
    on May 30, 2024
  7. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateFix Available

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy