Skip to content

Commit 830b907

Browse files
committed
feat: Vue 2.7 compatibility
1 parent 39112fa commit 830b907

20 files changed

+24
-33
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v2.1.1
2+
3+
> `2022-07-11`
4+
5+
### 🎉 Features
6+
- Vue `2.7` compatibility.
7+
18
## v2.1.0
29

310
> `2022-07-11`

build/vue2.rollup.config.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import vue from 'vue-prev-rollup-plugin-vue'
2-
import alias from '@rollup/plugin-alias'
32
import babel from '@rollup/plugin-babel'
43
import { terser } from 'rollup-plugin-terser'
54

@@ -12,11 +11,6 @@ export default [
1211
},
1312
plugins: [
1413
vue(),
15-
alias({
16-
entries: [
17-
{ find: 'composition-api', replacement: 'vue' },
18-
]
19-
}),
2014
babel({
2115
babelHelpers: 'runtime',
2216
skipPreflightCheck: true,
@@ -32,7 +26,6 @@ export default [
3226
format: 'iife',
3327
name: 'VueformToggle',
3428
globals: {
35-
'composition-api': 'Vue',
3629
'vue': 'Vue',
3730
}
3831
},
@@ -43,6 +36,6 @@ export default [
4336
}),
4437
terser()
4538
],
46-
external: ['composition-api', 'vue'],
39+
external: ['vue'],
4740
}
4841
]

build/vue3.rollup.config.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import vue from 'vue-next-rollup-plugin-vue'
2-
import alias from '@rollup/plugin-alias'
32
import babel from '@rollup/plugin-babel'
43
import { terser } from 'rollup-plugin-terser'
54

@@ -12,11 +11,6 @@ export default [
1211
},
1312
plugins: [
1413
vue(),
15-
alias({
16-
entries: [
17-
{ find: 'composition-api', replacement: 'vue' },
18-
]
19-
}),
2014
babel({
2115
babelHelpers: 'runtime',
2216
skipPreflightCheck: true,
@@ -32,7 +26,6 @@ export default [
3226
format: 'iife',
3327
name: 'VueformToggle',
3428
globals: {
35-
'composition-api': 'Vue',
3629
'vue': 'Vue',
3730
}
3831
},
@@ -43,6 +36,6 @@ export default [
4336
}),
4437
terser()
4538
],
46-
external: ['composition-api', 'vue'],
39+
external: ['vue'],
4740
}
4841
]

dist/toggle.global.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)