Replies: 2 comments
-
I think it's not possible unless you create a plugin. |
Beta Was this translation helpful? Give feedback.
0 replies
-
To implement this plugin, refer to the built-in plugin of vite, which transform |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is there a way, or a plugin, to access import.meta.glob's imported files file stats?
I'm using vite to build a static blog and there is this section:
.. and I get path, get file contents, but don't file file stats. I'd like to use the file created date/modified date as metadata inside my post.
I can implement a plugin if it's possible to do this, please someone point me docs.
EDIT: I have tried using this:
but it won't work properly in the client. I get a error like this in thw browser:
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions