Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): Support for *.mts/*.cts files #6909

Merged
merged 9 commits into from
Feb 7, 2023

Conversation

nissy-dev
Copy link
Contributor

@nissy-dev nissy-dev commented Feb 6, 2023

Description: Fix #4679

BREAKING CHANGE:

Related issue (if exists): Fix #4679 I also referred to babel/babel#13838

@nissy-dev nissy-dev changed the title feat(ec/parser): Support for *.mts/*.cts files feat(es/parser): Support for *.mts/*.cts files Feb 6, 2023
@kdy1 kdy1 self-assigned this Feb 7, 2023
@nissy-dev nissy-dev changed the title feat(es/parser): Support for *.mts/*.cts files feat(es/parser): Add disallow_ambiguous_jsx_like option to parse mts and cts files like tsc and babel Feb 7, 2023
@nissy-dev nissy-dev changed the title feat(es/parser): Add disallow_ambiguous_jsx_like option to parse mts and cts files like tsc and babel feat(es/parser): Add disallow_ambiguous_jsx_like option to parse mts/cts files like tsc and babel Feb 7, 2023
@nissy-dev nissy-dev changed the title feat(es/parser): Add disallow_ambiguous_jsx_like option to parse mts/cts files like tsc and babel feat(cli): Support for *.mts/*.cts files Feb 7, 2023
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!


swc-bump:

  • swc

@kdy1 kdy1 enabled auto-merge (squash) February 7, 2023 13:11
@kdy1 kdy1 added this to the Planned milestone Feb 7, 2023
Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review comment generated by auto-rebase script

@kdy1 kdy1 merged commit 76bc8a2 into swc-project:main Feb 7, 2023
@kdy1 kdy1 modified the milestones: Planned, v1.3.33, v1.3.34 Feb 8, 2023
@webstrand
Copy link

Should this be available in v1.3.35?

await (await import("@swc/core")).transform("let x: number = 5", { filename: "foo.mts" })

does not work in v1.3.35, it throws an error on encountering the : number annotation

@kdy1
Copy link
Member

kdy1 commented Feb 14, 2023

@webstrand Can you file an issue?

@swc-project swc-project locked as resolved and limited conversation to collaborators Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add support for *.mts/*.cts files
4 participants