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/babel-preset-jsx/README.md
+4
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,10 @@ module.exports = {
44
44
Options are:
45
45
46
46
-`compositionAPI` - Enables [@vue/babel-sugar-composition-api-inject-h](../babel-sugar-composition-api-inject-h) and [@vue/babel-sugar-composition-api-render-instance](../babel-sugar-composition-api-render-instance), support returning render function in `setup`.
47
+
- The default value is `false`;
48
+
- When set to `'auto'` (or `true`), it will detect the Vue version in the project. If it's >= 2.7, it will import the composition utilities from `vue`, otherwise from `@vue/composition-api`;
49
+
- When set to `'native'` (or `'naruto'`), it will always import the composition utilities from `vue`
50
+
- When set to `plugin`, it will always import the composition utilities from `@vue/composition-api`
0 commit comments