Skip to content

Commit

Permalink
chore: update design notes
Browse files Browse the repository at this point in the history
  • Loading branch information
yue1123 committed Oct 10, 2022
1 parent 32a9303 commit f8bc3c4
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion design-notes/think.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,24 @@ if (!isProduction) {
output.push(`script.__file = ${JSON.stringify(path_1.default.basename(shortFilePath))}`);
}
```
rollup 打包组件库指定环境: `cross-env NODE_ENV=production rollup -c`
rollup 打包组件库指定环境: `cross-env NODE_ENV=production rollup -c`


## 2022.10.10
`app.use(vue3BaiduMapGl)`同时兼容 umd 和 es

只需要在默认导出插件配置项的同时导出单独的`install``version`
```
const vue3BaiduMapGl = {
install: (app: App, options?: InitOptions) => {
// ....
},
version: '1.0.0'
}
// export for es
export default vue3BaiduMapGl
// export for umd
export const install = vue3BaiduMapGl.install
export const version = vue3BaiduMapGl.version
```

0 comments on commit f8bc3c4

Please sign in to comment.