Created
October 28, 2023 09:39
-
-
Save ngseke/9c89bf6375eb0c05d7bd6063d7a618f7 to your computer and use it in GitHub Desktop.
Vite `import.meta.glob`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const modules = import.meta.glob('./components/*/index.ts') | |
for (const module of Object.values(modules)) { | |
console.log(module) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment