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

convert @babel/helper-module-imports to typescript #12924

Merged

Conversation

zxbodya
Copy link
Contributor

@zxbodya zxbodya commented Feb 27, 2021

Q                       A
License MIT

@babel/helper-module-imports part of #11578

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 27, 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 2e925fc:

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

@babel-bot
Copy link
Collaborator

babel-bot commented Feb 27, 2021

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

@nicolo-ribaudo nicolo-ribaudo added the Flow -> TS Tracking repository migration from Flow to TS label Feb 27, 2021
@@ -439,6 +437,7 @@ export default class ImportInjector {
});

const targetPath = body.find(p => {
// @ts-expect-error todo(flow->ts): avoid mutations
Copy link
Contributor

Choose a reason for hiding this comment

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

TS complains unused '@ts-expect-error' directive here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is because of missing reference to @babel/traverse in tsconfig.json (because traverse types are missing - p instead of NodePath is typed as any, and so there is no error about accessing undeclared property on p.node)

made a fix in #12941

@zxbodya zxbodya force-pushed the ts-migration/babel-helper-module-imports branch from 8c6aa6e to e5c815d Compare March 2, 2021 02:27
@zxbodya zxbodya force-pushed the ts-migration/babel-helper-module-imports branch from e5c815d to 2e925fc Compare March 15, 2021 17:51
@nicolo-ribaudo nicolo-ribaudo merged commit 21e8e59 into babel:main Mar 18, 2021
@nicolo-ribaudo nicolo-ribaudo deleted the ts-migration/babel-helper-module-imports branch March 18, 2021 15:05
@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 Jun 18, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Flow -> TS Tracking repository migration from Flow to TS outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants