fix: typo [ci skip]

This commit is contained in:
Amour1688 2021-02-12 21:47:04 +08:00
parent d87a834ca2
commit 57f670711d

View File

@ -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) {