Skip to content

Commit cd3bab1

Browse files
committed
fix: Add staticClass as root attribute
1 parent 566d9b7 commit cd3bab1

File tree

1 file changed

+1
-1
lines changed
  • packages/babel-plugin-transform-vue-jsx/src

1 file changed

+1
-1
lines changed

Diff for: packages/babel-plugin-transform-vue-jsx/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { addDefault } from '@babel/helper-module-imports'
33
import kebabcase from 'lodash.kebabcase'
44

55
const xlinkRE = /^xlink([A-Z])/
6-
const rootAttributes = ['class', 'style', 'key', 'ref', 'refInFor', 'slot', 'scopedSlots', 'model']
6+
const rootAttributes = ['staticClass', 'class', 'style', 'key', 'ref', 'refInFor', 'slot', 'scopedSlots', 'model']
77
const prefixes = ['props', 'domProps', 'on', 'nativeOn', 'hook', 'attrs']
88
const domPropsValueElements = ['input', 'textarea', 'option', 'select']
99
const domPropsElements = [...domPropsValueElements, 'video']

0 commit comments

Comments
 (0)