Description
Current Named Imports only supports string or undefined.
I only need the imported paths, not the modules themselves.
Suggested solution
Support import: null:
const modules = import.meta.glob('./dir/*.js', { import: null })
Alternative
No response
Additional context
I am using this feature to get the page listing in a SvelteKit app.
Example: https://hyunbin.cc/poc (source)
This would also be useful for defining SvelteKit pre-render entries.
Validations
Description
Current Named Imports only supports
stringorundefined.I only need the imported paths, not the modules themselves.
Suggested solution
Support
import: null:Alternative
No response
Additional context
I am using this feature to get the page listing in a SvelteKit app.
Example: https://hyunbin.cc/poc (source)
This would also be useful for defining SvelteKit pre-render entries.
Validations