File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1717 "scripts" : {
1818 "prepublishOnly" : " yarn build" ,
1919 "build" : " rimraf dist && rollup -c" ,
20+ "build:watch" : " rollup -cw" ,
2021 "test" : " concurrently -n w: 'yarn:test:*'" ,
2122 "test:jest" : " cross-env BABEL_ENV=test jest" ,
2223 "test:types" : " tsd" ,
Original file line number Diff line number Diff line change 11import * as Vue from "vue" ;
22
3+ const lessThanVue3 = ! Vue . version || / ^ [ 0 1 2 ] \. .+ / . test ( Vue . version ) ;
4+
35export default {
46 props : {
57 config : [ Object , Promise ] ,
@@ -96,7 +98,7 @@ export default {
9698 this . addThingToDo ( "mount" , this . singleSpaMount ) ;
9799 }
98100 } ,
99- destroyed ( ) {
101+ [ lessThanVue3 ? " destroyed" : "unmounted" ] ( ) {
100102 this . addThingToDo ( "unmount" , this . singleSpaUnmount ) ;
101103 } ,
102104 watch : {
You can’t perform that action at this time.
0 commit comments