-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
convert @babel/helper-module-imports to typescript #12924
Conversation
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:
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/44341/ |
@@ -439,6 +437,7 @@ export default class ImportInjector { | |||
}); | |||
|
|||
const targetPath = body.find(p => { | |||
// @ts-expect-error todo(flow->ts): avoid mutations |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
8c6aa6e
to
e5c815d
Compare
e5c815d
to
2e925fc
Compare
@babel/helper-module-imports part of #11578