Skip to content

feat(typescript): implement namespace alias#13528

Merged
nicolo-ribaudo merged 1 commit intobabel:mainfrom
colinaaa:feat/ts-namespace-alias
Aug 3, 2021
Merged

feat(typescript): implement namespace alias#13528
nicolo-ribaudo merged 1 commit intobabel:mainfrom
colinaaa:feat/ts-namespace-alias

Conversation

@colinaaa
Copy link
Copy Markdown
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 #12345
@codesandbox-ci
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@nicolo-ribaudo nicolo-ribaudo requested a review from JLHwung July 10, 2021 15:41
@nicolo-ribaudo nicolo-ribaudo added this to the v7.15.0 milestone Jul 10, 2021
Copy link
Copy Markdown
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
Copy Markdown
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