-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Polyfill import.meta.url
when output format is cjs
#1633
Comments
So esbuild generally doesn't do polyfills. It also doesn't polyfill node's built-in
You can read more about how to do this here: https://esbuild.github.io/api/#using-inject-with-define. Closing since I believe this to be out of scope. |
@evanw ,
Why do we need this trick? |
This is the default behavior of Rollup so I think maybe esbuild should also add this 🤔
The text was updated successfully, but these errors were encountered: