-
Notifications
You must be signed in to change notification settings - Fork 13
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
import.meta.glob
not transformed when options are passed
#42
Comments
Running into this same issue myself, when supplying the 2nd argument. Seems like that usage isn't supported by this plugin (only 1 string arg in the patterns 👇🏽), so it would need to be implemented in order to support this usage.
I can attempt a PR that does this, but no guarantees that a) i'll get it working and b) on when I'll find the time. |
I also got same issue |
I encountered the same problem |
@krybinski hi, the new version already publish #51 (comment) |
I'm still having the issue. Seems there's still a check where it only transforms if number of args is 1. I think the issue is here
|
I am not sure if this is the only issue people are still experiencing, but an issue we are running into is that the above mentioned PRs only addressed the The |
babel-preset-vite
version: 1.0.4babel-plugin-transform-vite-meta-env
version: 1.0.3babel-plugin-transform-vite-meta-glob
version: 1.0.3@babel/core
version: 7.11.1node
version: 16.17.1npm
(oryarn
) version: yarn 1.22.19Relevant code or config:
What you did:
What happened:
This error occurs when attempting to run tests
Reproduction:
TBD (I've got a big application and I'm not in a place to strip it down to the essentials right now)
Problem description:
It looks like
import.meta.glob
doesn't get transformed when a second argument it passed.Suggested solution:
I'm not familiar enough with babel plugins, but if we can specify optional arguments when doing the transformation I'm guessing that will solve it. Not sure how involved we want to make the transformation though. It might be a lot to replicate what Vite does with
import.meta.glob
with options.The text was updated successfully, but these errors were encountered: