提交 b6d29624 编写于 作者: Y yylgit

fix json

上级 86055aad
......@@ -221,7 +221,7 @@ class Compiler {
if (options.moduleType === 'json') {
// cml文件中的json部分
if (options.ext === '.cml') {
if (options.ext === '.cml' || (this.userPlugin.miniappExt && this.userPlugin.miniappExt.rule.test(options.realPath))) {
options.convert = JSON.parse(options.source);
} else {
// 其他json文件当成script模块
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册