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(typescript): implement namespace alias #13528

Merged
merged 1 commit into from Aug 3, 2021

Conversation

colinaaa
Copy link
Contributor

@colinaaa colinaaa commented Jul 3, 2021

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

Support import alias = Namespace, reject import alias = require('foo')

Implementation is quite simple. Just replace moduleReference with Expression | MemberExpression.

support `import alias = Namespace`, reject `import alias = require('foo')`

fix babel#12345
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 3, 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 21af3b4:

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

@babel-bot
Copy link
Collaborator

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

@nicolo-ribaudo nicolo-ribaudo added area: typescript PR: New Feature 🚀 A type of pull request used for our changelog categories labels Jul 4, 2021
@colinaaa
Copy link
Contributor Author

What's the status here? should this PR be merged in v7.15.0?

@nicolo-ribaudo nicolo-ribaudo added this to the v7.15.0 milestone Jul 10, 2021
Copy link
Contributor

@JLHwung JLHwung left a comment

Choose a reason for hiding this comment

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

Great work!

@nicolo-ribaudo nicolo-ribaudo added the PR: Ready to be Merged A pull request with already two approvals, but waiting for the next minor release label Jul 15, 2021
@nicolo-ribaudo
Copy link
Member

Thanks! We'll release 7.15 this week.

@nicolo-ribaudo nicolo-ribaudo merged commit 0542f0d into babel:main Aug 3, 2021
@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 Nov 3, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: typescript outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: New Feature 🚀 A type of pull request used for our changelog categories PR: Ready to be Merged A pull request with already two approvals, but waiting for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[@babel/preset-typescript] Namespace alias (native TS feature) is not supported
7 participants