mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-01-10 16:29:12 +08:00
fix: typo [ci skip]
This commit is contained in:
parent
d87a834ca2
commit
57f670711d
@ -4,7 +4,7 @@ import template from '@babel/template';
|
|||||||
import syntaxJsx from '@babel/plugin-syntax-jsx';
|
import syntaxJsx from '@babel/plugin-syntax-jsx';
|
||||||
import { addNamed, isModule, addNamespace } from '@babel/helper-module-imports';
|
import { addNamed, isModule, addNamespace } from '@babel/helper-module-imports';
|
||||||
import { NodePath } from '@babel/traverse';
|
import { NodePath } from '@babel/traverse';
|
||||||
import tranformVueJSX from './transform-vue-jsx';
|
import transformVueJSX from './transform-vue-jsx';
|
||||||
import sugarFragment from './sugar-fragment';
|
import sugarFragment from './sugar-fragment';
|
||||||
|
|
||||||
export type State = {
|
export type State = {
|
||||||
@ -48,7 +48,7 @@ export default ({ types }: typeof BabelCore) => ({
|
|||||||
name: 'babel-plugin-jsx',
|
name: 'babel-plugin-jsx',
|
||||||
inherits: syntaxJsx,
|
inherits: syntaxJsx,
|
||||||
visitor: {
|
visitor: {
|
||||||
...tranformVueJSX,
|
...transformVueJSX,
|
||||||
...sugarFragment,
|
...sugarFragment,
|
||||||
Program: {
|
Program: {
|
||||||
enter(path: NodePath<t.Program>, state: State) {
|
enter(path: NodePath<t.Program>, state: State) {
|
||||||
|
Loading…
Reference in New Issue
Block a user