Open mxyhi opened 4 days ago
replace
const mods = import.meta.glob(`./**/*`);
with
import.meta.glob('./**/*');
Using string literal instead of template string
取代
const mods = import.meta.glob(`./**/*`);
跟
import.meta.glob('./**/*');
使用 string literal 而不是 template string
???
glob 里面用字符串常量,比如 import.meta.glob('./**/*')
;。用模版字符串(./**/*
)的话会视为一个变量,无法静态分析
Steps to reproduce
console.log(mods);
Reproduce link
No response
What is actually happening?
System Info