Skip to content

Commit

Permalink
build: treats echart as external
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Dec 7, 2021
1 parent c58c6b6 commit e83293f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions build/full-bundle.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: 2021-12-05 09:47:07
* @LastEditTime: 2021-12-07 10:15:05
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \vue-cesium@next\build\full-bundle.ts
Expand Down Expand Up @@ -58,7 +58,8 @@ export const buildFull = (minify: boolean) => async () => {
exports: 'named',
name: 'VueCesium',
globals: {
vue: 'Vue'
vue: 'Vue',
echarts: 'echarts'
},
sourcemap: minify,
banner
Expand Down
4 changes: 2 additions & 2 deletions build/utils/rollup.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: 2021-12-05 09:46:50
* @LastEditTime: 2021-12-07 10:14:56
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \vue-cesium@next\build\utils\rollup.ts
Expand All @@ -13,7 +13,7 @@ import type { OutputOptions, RollupBuild } from 'rollup'

export const generateExternal = async (options: { full: boolean }) => {
return (id: string) => {
const packages: string[] = ['vue']
const packages: string[] = ['vue', 'echarts']
if (!options.full) {
packages.push('vue-cesium/theme-default')
// dependencies
Expand Down

0 comments on commit e83293f

Please sign in to comment.