diff --git a/packages/babel-plugin-jsx/src/index.ts b/packages/babel-plugin-jsx/src/index.ts index 301b01e..f5fa15f 100644 --- a/packages/babel-plugin-jsx/src/index.ts +++ b/packages/babel-plugin-jsx/src/index.ts @@ -1,4 +1,4 @@ -import * as t from '@babel/types'; +import t from '@babel/types'; import type * as BabelCore from '@babel/core'; import _template from '@babel/template'; // @ts-expect-error diff --git a/packages/babel-plugin-jsx/src/interface.ts b/packages/babel-plugin-jsx/src/interface.ts index e2aa08e..cb0524d 100644 --- a/packages/babel-plugin-jsx/src/interface.ts +++ b/packages/babel-plugin-jsx/src/interface.ts @@ -1,4 +1,4 @@ -import type * as t from '@babel/types'; +import type t from '@babel/types'; import type * as BabelCore from '@babel/core'; import { type Options } from '@vue/babel-plugin-resolve-type'; diff --git a/packages/babel-plugin-jsx/src/parseDirectives.ts b/packages/babel-plugin-jsx/src/parseDirectives.ts index ba23fb0..01be703 100644 --- a/packages/babel-plugin-jsx/src/parseDirectives.ts +++ b/packages/babel-plugin-jsx/src/parseDirectives.ts @@ -1,4 +1,4 @@ -import * as t from '@babel/types'; +import t from '@babel/types'; import { type NodePath } from '@babel/traverse'; import { createIdentifier } from './utils'; import type { State } from './interface'; diff --git a/packages/babel-plugin-jsx/src/sugar-fragment.ts b/packages/babel-plugin-jsx/src/sugar-fragment.ts index b724d8c..99a810b 100644 --- a/packages/babel-plugin-jsx/src/sugar-fragment.ts +++ b/packages/babel-plugin-jsx/src/sugar-fragment.ts @@ -1,4 +1,4 @@ -import * as t from '@babel/types'; +import t from '@babel/types'; import { type NodePath, type Visitor } from '@babel/traverse'; import type { State } from './interface'; import { FRAGMENT, createIdentifier } from './utils'; diff --git a/packages/babel-plugin-jsx/src/transform-vue-jsx.ts b/packages/babel-plugin-jsx/src/transform-vue-jsx.ts index 8b32e44..e563b2f 100644 --- a/packages/babel-plugin-jsx/src/transform-vue-jsx.ts +++ b/packages/babel-plugin-jsx/src/transform-vue-jsx.ts @@ -1,4 +1,4 @@ -import * as t from '@babel/types'; +import t from '@babel/types'; import { type NodePath, type Visitor } from '@babel/traverse'; import { addDefault } from '@babel/helper-module-imports'; import { diff --git a/packages/babel-plugin-jsx/src/utils.ts b/packages/babel-plugin-jsx/src/utils.ts index bc64ab5..520fd97 100644 --- a/packages/babel-plugin-jsx/src/utils.ts +++ b/packages/babel-plugin-jsx/src/utils.ts @@ -1,4 +1,4 @@ -import * as t from '@babel/types'; +import t from '@babel/types'; import { type NodePath } from '@babel/traverse'; import { isHTMLTag, isSVGTag } from '@vue/shared'; import type { State } from './interface';