Skip to content

Commit 0193483

Browse files
committed
chore(release): add dist files 1.0.0-beta.23
1 parent d5a0f04 commit 0193483

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

Diff for: packages/server-test-utils/dist/vue-server-test-utils.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -692,9 +692,8 @@ function createInstance (
692692
component.options._base = _Vue;
693693
}
694694

695-
// when component constructed by Vue.extend,
696-
// use its own extend method to keep component information
697-
var Constructor = typeof component === 'function'
695+
// extend component from _Vue to add properties and mixins
696+
var Constructor = typeof component === 'function' && vueVersion < 2.3
698697
? component.extend(instanceOptions)
699698
: _Vue.extend(component).extend(instanceOptions);
700699

Diff for: packages/test-utils/dist/vue-test-utils.iife.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -2798,9 +2798,8 @@ function createInstance (
27982798
component.options._base = _Vue;
27992799
}
28002800

2801-
// when component constructed by Vue.extend,
2802-
// use its own extend method to keep component information
2803-
var Constructor = typeof component === 'function'
2801+
// extend component from _Vue to add properties and mixins
2802+
var Constructor = typeof component === 'function' && vueVersion < 2.3
28042803
? component.extend(instanceOptions)
28052804
: _Vue.extend(component).extend(instanceOptions);
28062805

Diff for: packages/test-utils/dist/vue-test-utils.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -2800,9 +2800,8 @@ function createInstance (
28002800
component.options._base = _Vue;
28012801
}
28022802

2803-
// when component constructed by Vue.extend,
2804-
// use its own extend method to keep component information
2805-
var Constructor = typeof component === 'function'
2803+
// extend component from _Vue to add properties and mixins
2804+
var Constructor = typeof component === 'function' && vueVersion < 2.3
28062805
? component.extend(instanceOptions)
28072806
: _Vue.extend(component).extend(instanceOptions);
28082807

Diff for: packages/test-utils/dist/vue-test-utils.umd.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -2801,9 +2801,8 @@ function createInstance (
28012801
component.options._base = _Vue;
28022802
}
28032803

2804-
// when component constructed by Vue.extend,
2805-
// use its own extend method to keep component information
2806-
var Constructor = typeof component === 'function'
2804+
// extend component from _Vue to add properties and mixins
2805+
var Constructor = typeof component === 'function' && vueVersion < 2.3
28072806
? component.extend(instanceOptions)
28082807
: _Vue.extend(component).extend(instanceOptions);
28092808

0 commit comments

Comments
 (0)