Glob import files

Is it possible to glob import files in a Worker? Like the import.meta.glob function available in Vite. The glob package on npm did not work because some Node stuff was missing. Thanks!
1 Reply
James
James11mo ago
Not that I'm aware of. You'd have to use a custom build and then add a plugin like https://github.com/whaaaley/esbuild-plugin-glob-import to your own build config
GitHub
GitHub - whaaaley/esbuild-plugin-glob-import: Use globs to import m...
Use globs to import multiple files. Contribute to whaaaley/esbuild-plugin-glob-import development by creating an account on GitHub.