You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/plugin-vue-jsx/README.md
+9-1
Original file line number
Diff line number
Diff line change
@@ -35,12 +35,20 @@ A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patt
35
35
36
36
> See [@vue/babel-plugin-jsx](https://github.com/vuejs/jsx-next) for other options.
37
37
38
+
### defineComponentName
39
+
40
+
Type: `string[]`
41
+
42
+
Default: `['defineComponent']`
43
+
44
+
The name of the function to be used for defining components. This is useful when you have a custom `defineComponent` function.
45
+
38
46
## HMR Detection
39
47
40
48
This plugin supports HMR of Vue JSX components. The detection requirements are:
41
49
42
50
- The component must be exported.
43
-
- The component must be declared by calling `defineComponent` via a root-level statement, either variable declaration or export declaration.
51
+
- The component must be declared by calling `defineComponent`or the name specified in `defineComponentName`via a root-level statement, either variable declaration or export declaration.
0 commit comments