-
Notifications
You must be signed in to change notification settings - Fork 710
Description
Reproduction link or steps
//from @generouted/react-router
var PRESERVED = import.meta.glob("/src/pages/(_app|404).{jsx,tsx}", { eager: true });
var MODALS = import.meta.glob("/src/pages/**/[+]*.{jsx,tsx}", { eager: true });
var ROUTES = import.meta.glob(["/src/pages/**/[\\w[-]*.{jsx,tsx,mdx}", "!/src/pages/**/(_!(layout)*(/*)?|_app|404)*"], { eager: true });
console.log("PRESERVED, MODALS, ROUTES", PRESERVED, MODALS, ROUTES);
these impors are empty objects from rolldown-vite
What is expected?
import.meta.glob works like vite
What is actually happening?
empty objects
System Info
System:
OS: Linux 5.15 Ubuntu 20.04.3 LTS (Focal Fossa)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Memory: 7.93 GB / 11.69 GB
Container: Yes
Shell: 5.8 - /usr/bin/zsh
Binaries:
Node: 22.9.0 - ~/.asdf/installs/nodejs/22.9.0/bin/node
npm: 10.8.3 - ~/.asdf/plugins/nodejs/shims/npm
pnpm: 9.6.0 - ~/.local/share/pnpm/pnpmAny additional comments?
No response
Reactions are currently unavailable