|
entry.depth() == 0 || entry.file_name().to_str().is_none_or(|s| s != "node_modules") |
const modules = import.meta.glob<{ default: { view: LazyExoticComponent<() => JSX.Element> } }>(
['@@@/node_modules/xxx//app/web/router/.{js,jsx}', '@@@/plugin//app/web/router/.{ts,tsx}'],
{ eager: true, exhaustive: true },
);
when i use below rolldown-vite 7.1.2,this code is worked, but when i upgrade rolldown-vite to the lastest version, it's enable enableNativePlugin by default, so that i get the unexpect result. i lose the file from node_modules