Skip to content

Commit

Permalink
feat: support compile plugin export
Browse files Browse the repository at this point in the history
  • Loading branch information
kagawagao committed Oct 31, 2022
1 parent a6733bf commit 27b39dc
Show file tree
Hide file tree
Showing 24 changed files with 2,590 additions and 15 deletions.
4 changes: 2 additions & 2 deletions examples/build-weapp-plugin/src/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export default {
'mp-comp': 'component/comp'
}
},
// 需要配置 copy,复制 my-export.js 到 miniprogram/miniprogram
export: 'my-export.js'
// 自动编译输出
export: 'plugin-export'
}
}
}
1 change: 0 additions & 1 deletion examples/build-weapp-plugin/src/my-export.js

This file was deleted.

1 change: 1 addition & 0 deletions examples/build-weapp-plugin/src/plugin-export.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { whoami: 'Wechat MiniProgram' }
Loading

0 comments on commit 27b39dc

Please sign in to comment.