You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Howdy! The documentation was clear, but I realize I inferred a bit too much from the plugin name and expected everything under import.meta to be transpiled.
Node.js has extended import.meta with properties like dirname as outlined here:
And for browsers I think the properties are just url and resolve.
Babel and this plugin seem like the best way to keep ES code and CJS hack free.
I’m not sure about the feasibility, but I wonder if it’s possible for the plugin to transpile each of these properties. Thanks for all the work you put into this plugin!
The text was updated successfully, but these errors were encountered:
The branch new_meta_apis is a quick draft for the desired functionality. If someone is really interested in those apis, they could work on a PR starting from that branch. To make it production ready, someone should make sure that the transformed output makes sense and complies with the import.meta specifications, test coverage should increase and documentation should be updated.
Howdy! The documentation was clear, but I realize I inferred a bit too much from the plugin name and expected everything under import.meta to be transpiled.
Node.js has extended import.meta with properties like
dirname
as outlined here:And for browsers I think the properties are just
url
andresolve
.Babel and this plugin seem like the best way to keep ES code and CJS hack free.
I’m not sure about the feasibility, but I wonder if it’s possible for the plugin to transpile each of these properties. Thanks for all the work you put into this plugin!
The text was updated successfully, but these errors were encountered: