-
Notifications
You must be signed in to change notification settings - Fork 40
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: add transform for import.meta.resolve/main
expressions
#322
Conversation
@dsherret The CI test fail, need help |
for now (node 20.4.0) |
import.meta.resolve/main
expressions
lib/compiler_transforms.ts
Outdated
} | ||
} | ||
if (originNode !== undefined) { | ||
node = originNode; |
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 PR looks very good other than this state being maintained like this, which is a bit confusing. I'm going to push a change.
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.
LGTM. Thanks @Gaubee!
import.meta.resolve/main
expressionsimport.meta.resolve/main
expressions
import.meta.resolve now work in commonjs and esmodule
import.meta.main now work in esmodule too