Skip to content
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

Template string in import.meta.glob yields no results #8490

Closed
janosh opened this issue Jan 12, 2023 · 1 comment
Closed

Template string in import.meta.glob yields no results #8490

janosh opened this issue Jan 12, 2023 · 1 comment

Comments

@janosh
Copy link
Contributor

janosh commented Jan 12, 2023

Describe the bug

There's still a problem with #6239. Escaping parens in import.meta.glob goes wrong for template strings.

Object.keys(
  import.meta.glob('./\\(demos\\)/*/+page.{svx,md,svelte}')
).length
>>> 11

Object.keys(
  import.meta.glob(`./\\(demos\\)/*/+page.{svx,md,svelte}`)
).length
>>> 0

Reproduction

See the console logs in this repro:

https://stackblitz.com/edit/sveltejs-kit-template-default-skkkob?file=src/routes/+page.js

Logs

No response

System Info

StackBlitz

Severity

annoyance

Additional Information

No response

@Rich-Harris
Copy link
Member

This is a Vite issue, not a SvelteKit issue — closing

@Rich-Harris Rich-Harris closed this as not planned Won't fix, can't repro, duplicate, stale Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants