We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4969f30 commit 6cb1711Copy full SHA for 6cb1711
src/wrappers/create-wrapper.js
@@ -0,0 +1,15 @@
1
+// @flow
2
+
3
+import Vue from 'vue'
4
+import Wrapper from './wrapper'
5
+import VueWrapper from './vue-wrapper'
6
7
+export default function createWrapper (
8
+ node: VNode | Component,
9
+ update: Function,
10
+ options: WrapperOptions
11
+) {
12
+ return node instanceof Vue
13
+ ? new VueWrapper(node, options)
14
+ : new Wrapper(node, update, options)
15
+}
0 commit comments