Skip to content

Parse string export names by default (moduleStringNames)#13195

Merged
nicolo-ribaudo merged 2 commits intobabel:feat-7.14.0/parser-updatesfrom
nicolo-ribaudo:moduleStringNames-default
Apr 23, 2021
Merged

Parse string export names by default (moduleStringNames)#13195
nicolo-ribaudo merged 2 commits intobabel:feat-7.14.0/parser-updatesfrom
nicolo-ribaudo:moduleStringNames-default

Conversation

@nicolo-ribaudo
Copy link
Copy Markdown
Member

Q                       A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Ref: tc39/ecma262#2154

This syntax is effectively stage 4. It didn't go through the proposals process, but:

  • It reached consensus in the Sept 2020 meeting, pending test262 tests and implementations
  • It now has test262 tests
  • It has been now implemented in different major engines (v8, SM and JSC)

@nicolo-ribaudo nicolo-ribaudo added PR: New Feature 🚀 A type of pull request used for our changelog categories area: modules pkg: parser labels Apr 22, 2021
@nicolo-ribaudo nicolo-ribaudo changed the base branch from feat-7.14.0/preset-env to feat-7.14.0/parser-updates April 22, 2021 22:04
@nicolo-ribaudo nicolo-ribaudo force-pushed the moduleStringNames-default branch from ad09030 to 9370d4c Compare April 22, 2021 22:05
@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Apr 22, 2021

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/45534/

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented Apr 22, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d4f77d8:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@nicolo-ribaudo nicolo-ribaudo force-pushed the feat-7.14.0/parser-updates branch from cf45eef to 2d0b249 Compare April 22, 2021 22:11
@nicolo-ribaudo nicolo-ribaudo force-pushed the moduleStringNames-default branch from 9370d4c to 3795942 Compare April 22, 2021 22:12
@nicolo-ribaudo
Copy link
Copy Markdown
Member Author

Note that we don't have a plugin to transform this.

It would be possible to transform imports:

import { "a b" as x } from "mod";
x;

// ->

import * as _mod from "mod";
_mod["a b"];

but I think that exports are impossible to transpile.

@nicolo-ribaudo nicolo-ribaudo merged commit 0512869 into babel:feat-7.14.0/parser-updates Apr 23, 2021
@nicolo-ribaudo nicolo-ribaudo deleted the moduleStringNames-default branch April 23, 2021 07:07
@nicolo-ribaudo nicolo-ribaudo mentioned this pull request Apr 23, 2021
9 tasks
nicolo-ribaudo added a commit that referenced this pull request Apr 23, 2021
* Parse string epxort names by default (`moduleStringNames`)

* Remove remaining references
nicolo-ribaudo added a commit that referenced this pull request Apr 26, 2021
* Parse string epxort names by default (`moduleStringNames`)

* Remove remaining references
nicolo-ribaudo added a commit that referenced this pull request Apr 28, 2021
* Parse string epxort names by default (`moduleStringNames`)

* Remove remaining references
@github-actions github-actions Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jul 24, 2021
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: modules outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser PR: New Feature 🚀 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants