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: add transform for import.meta.resolve/main expressions #322

Merged
merged 7 commits into from
Jul 19, 2023

Conversation

Gaubee
Copy link
Contributor

@Gaubee Gaubee commented Jul 10, 2023

import.meta.resolve now work in commonjs and esmodule
import.meta.main now work in esmodule too

@Gaubee
Copy link
Contributor Author

Gaubee commented Jul 10, 2023

@dsherret The CI test fail, need help

@Gaubee
Copy link
Contributor Author

Gaubee commented Jul 10, 2023

for now (node 20.4.0) import.meta.resolve in nodejs is still experimental feature.
so when it been stable, the transfrom will be optional, for now is enforce.

@Gaubee Gaubee changed the title ✨ add transform import.meta.resolve expressions ✨ add transform import.meta.resolve/main expressions Jul 13, 2023
}
}
if (originNode !== undefined) {
node = originNode;
Copy link
Member

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.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @Gaubee!

@dsherret dsherret changed the title ✨ add transform import.meta.resolve/main expressions feat: add transform for import.meta.resolve/main expressions Jul 19, 2023
@dsherret dsherret merged commit c14f977 into denoland:main Jul 19, 2023
waterbang added a commit to BioforestChain/dweb_browser that referenced this pull request Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants