[WARNING] "import.meta" is not available in the configured target environment ("es2015") and will be empty [empty-import-meta] 如何处理,某些地方同样使用了没警告,如果在使用了renderjs的页面使用,直接编译后页面空白
欢迎到专业群( HBuilderX技术交流群 ) 咨询,群中有相关专业的管理员和群友。
抱歉,我在知识库中没有找到关于 "import.meta is not available in the configured target environment ('es2015')" 警告的具体解决方案。
知识库中仅在 type-compatibility 文档 提及了 import.meta.globEager 的用法,用于在 Vite 项目中扫描指定目录下的文件,但未涉及如何配置目标环境以解决该警告,也没有关于 renderjs 中使用 import.meta 导致页面空白的相关内容。
建议您检查项目根目录下的 vite.config.js(或 vue.config.js)中的 build.target 配置,或前往 DCloud 社区 搜索相关讨论。