uniapp打包app,报错Invalid value "iife" for option "output.format" - UMD and IIFE output formats are not supported for code-splitting builds.
代码在浏览器端运行正常,编译打包时报错;
因为项目要解析markdown,安装bytemd插件后,出现了这个问题,请问有什么解决方法吗

m***@163.com
- 发布:2024-07-26 17:15
- 更新:2025-04-23 15:31
- 阅读:1052
Invalid value "iife" for option "output.format" - UMD and IIFE output formats are not supported
分类:HBuilderX
3 个回复
9***@qq.com - 凡凡凡ok
解决了吗
1***@qq.com
+1 使用动态import后出现该问题
9***@qq.com
解决不了,直接放弃,不支持打包
2025-04-23 09:30
1***@qq.com - 1111
使用了 动态import 或者 异步导入模块功能,需要用条件编译排除掉 app不支持异步导入。
// #ifdef H5
const { default:} = await import("xxxx")
// #endif