Skip to content

Commit

Permalink
refactor(vue-cesium): ♻️ modify the export method of the library to a…
Browse files Browse the repository at this point in the history
…void the problem that some classes cannot be referenced in umd mode.
  • Loading branch information
zouyaoji committed May 13, 2024
1 parent 23bd4be commit 816d00a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 21 deletions.
4 changes: 2 additions & 2 deletions build/gulpfile.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2021-12-03 14:11:08
* @LastEditTime: 2023-05-04 21:27:01
* @LastEditTime: 2024-04-16 17:51:40
* @LastEditors: zouyaoji 370681295@qq.com
* @Description:
* @FilePath: \vue-cesium\build\gulpfile.ts
Expand Down Expand Up @@ -53,7 +53,7 @@ export default series(
),

parallel(copyTypesDefinitions, copyFiles)
)
) as any

export * from './types-definitions'
export * from './modules'
Expand Down
23 changes: 23 additions & 0 deletions packages/vue-cesium/all.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2021-09-16 09:28:13
* @LastEditTime: 2022-01-23 00:57:59
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \vue-cesium@next\packages\vue-cesium\index.ts
*/
import installer from './defaults'
export * from '@vue-cesium/components'
export * from '@vue-cesium/directives'
export * from '@vue-cesium/composables'
export * from '@vue-cesium/shared'

// type define
export * from '@vue-cesium/utils/emits'

export { default as makeInstaller } from './make-installer'

export const install = installer.install
export const version = installer.version

export default installer
27 changes: 8 additions & 19 deletions packages/vue-cesium/index.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
/*
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2021-09-16 09:28:13
* @LastEditTime: 2022-01-23 00:57:59
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \vue-cesium@next\packages\vue-cesium\index.ts
* @Date: 2023-11-10 17:59:25
* @Description: Do not edit
* @LastEditors: zouyaoji 370681295@qq.com
* @LastEditTime: 2024-04-29 10:02:47
* @FilePath: \vue-cesium\packages\vue-cesium\index.ts
*/
import installer from './defaults'
export * from '@vue-cesium/components'
export * from '@vue-cesium/directives'
export * from '@vue-cesium/composables'
export * from '@vue-cesium/shared'
import * as VueCesiumExport from './all'

// type define
export * from '@vue-cesium/utils/emits'

export { default as makeInstaller } from './make-installer'

export const install = installer.install
export const version = installer.version

export default installer
export * from './all'
export default VueCesiumExport

0 comments on commit 816d00a

Please sign in to comment.