提交 e6a3fb3b 编写于 作者: Q qiang

fix(mp): plugin-create-app.js select main.js

上级 9b45db6d
......@@ -5,6 +5,8 @@ module.exports = function ({
visitor: {
MemberExpression (path, state) {
if (
// main.js main.ts
state.filename.startsWith(require('path').join(process.env.UNI_INPUT_DIR, 'main.')) &&
t.isIdentifier(path.node.property) &&
path.node.property.name === '$mount' &&
!path.node.$createApp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册