Skip to content

Commit da0857c

Browse files
committed
fix: remove vue-demi
1 parent d31069b commit da0857c

File tree

38 files changed

+43
-68
lines changed

38 files changed

+43
-68
lines changed

babel.config.js

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// eslint-disable-next-line
2-
const { isVue2, isVue3 } = require('vue-demi')
32

43
module.exports = {
54
presets: [
@@ -16,14 +15,8 @@ module.exports = {
1615
},
1716
],
1817
'@babel/preset-typescript',
19-
isVue2 && [
20-
'@vue/babel-preset-jsx',
21-
{
22-
compositionAPI: 'vue-demi',
23-
},
24-
],
25-
].filter(Boolean),
26-
plugins: [isVue3 && '@vue/babel-plugin-jsx'].filter(Boolean),
18+
],
19+
plugins: ['@vue/babel-plugin-jsx'],
2720
env: {
2821
commonjs: {
2922
presets: [
@@ -40,14 +33,8 @@ module.exports = {
4033
},
4134
],
4235
'@babel/preset-typescript',
43-
isVue2 && [
44-
'@vue/babel-preset-jsx',
45-
{
46-
compositionAPI: 'vue-demi',
47-
},
48-
],
49-
].filter(Boolean),
50-
plugins: [isVue3 && '@vue/babel-plugin-jsx'].filter(Boolean),
36+
],
37+
plugins: ['@vue/babel-plugin-jsx'],
5138
},
5239
},
5340
}

src/plots/area/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Area, AreaOptions } from '@antv/g2plot'
2-
import { App, defineComponent } from 'vue-demi'
2+
import { App, defineComponent } from 'vue'
33
import BaseChart, { BaseChartProps } from '../../components/base'
44
import { Writeable } from '../../types'
55
import { mergeAttrs } from '../../utils'

src/plots/bar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { App, defineComponent } from 'vue-demi'
21
import { Bar, BarOptions } from '@antv/g2plot'
2+
import { App, defineComponent } from 'vue'
33
import BaseChart, { BaseChartProps } from '../../components/base'
44
import { Writeable } from '../../types'
55
import { mergeAttrs } from '../../utils'

src/plots/bidirectional-bar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { App, defineComponent } from 'vue-demi'
21
import { BidirectionalBar, BidirectionalBarOptions } from '@antv/g2plot'
2+
import { App, defineComponent } from 'vue'
33
import BaseChart, { BaseChartProps } from '../../components/base'
44
import { Writeable } from '../../types'
55
import { mergeAttrs } from '../../utils'

src/plots/box/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { App, defineComponent } from 'vue-demi'
21
import { Box, BoxOptions } from '@antv/g2plot'
2+
import { App, defineComponent } from 'vue'
33
import BaseChart, { BaseChartProps } from '../../components/base'
44
import { Writeable } from '../../types'
55
import { mergeAttrs } from '../../utils'

src/plots/bullet/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { App, defineComponent } from 'vue-demi'
21
import { Bullet, BulletOptions } from '@antv/g2plot'
2+
import { App, defineComponent } from 'vue'
33
import BaseChart, { BaseChartProps } from '../../components/base'
44
import { Writeable } from '../../types'
55
import { mergeAttrs } from '../../utils'

src/plots/chord/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { App, defineComponent } from 'vue-demi'
21
import { Chord, ChordOptions } from '@antv/g2plot'
2+
import { App, defineComponent } from 'vue'
33
import BaseChart, { BaseChartProps } from '../../components/base'
44
import { Writeable } from '../../types'
55
import { mergeAttrs } from '../../utils'

src/plots/circle-packing/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { App, defineComponent } from 'vue-demi'
21
import { CirclePacking, CirclePackingOptions } from '@antv/g2plot'
2+
import { App, defineComponent } from 'vue'
33
import BaseChart, { BaseChartProps } from '../../components/base'
44
import { Writeable } from '../../types'
55
import { mergeAttrs } from '../../utils'

src/plots/column/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { App, defineComponent } from 'vue-demi'
21
import { Column, ColumnOptions } from '@antv/g2plot'
2+
import { App, defineComponent } from 'vue'
33
import BaseChart, { BaseChartProps } from '../../components/base'
44
import { Writeable } from '../../types'
55
import { mergeAttrs } from '../../utils'

src/plots/dual-axes/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { App, defineComponent } from 'vue-demi'
21
import { DualAxes, DualAxesOptions } from '@antv/g2plot'
2+
import { App, defineComponent } from 'vue'
33
import BaseChart, { BaseChartProps } from '../../components/base'
44
import { Writeable } from '../../types'
55
import { mergeAttrs } from '../../utils'

0 commit comments

Comments
 (0)