Skip to content

Commit 85d98b5

Browse files
committed
refactor: default import for cjs deps
1 parent 70aa0ca commit 85d98b5

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

packages/babel-plugin-jsx/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from '@babel/types';
1+
import t from '@babel/types';
22
import type * as BabelCore from '@babel/core';
33
import _template from '@babel/template';
44
// @ts-expect-error

packages/babel-plugin-jsx/src/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type * as t from '@babel/types';
1+
import type t from '@babel/types';
22
import type * as BabelCore from '@babel/core';
33
import { type Options } from '@vue/babel-plugin-resolve-type';
44

packages/babel-plugin-jsx/src/parseDirectives.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from '@babel/types';
1+
import t from '@babel/types';
22
import { type NodePath } from '@babel/traverse';
33
import { createIdentifier } from './utils';
44
import type { State } from './interface';

packages/babel-plugin-jsx/src/sugar-fragment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from '@babel/types';
1+
import t from '@babel/types';
22
import { type NodePath, type Visitor } from '@babel/traverse';
33
import type { State } from './interface';
44
import { FRAGMENT, createIdentifier } from './utils';

packages/babel-plugin-jsx/src/transform-vue-jsx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from '@babel/types';
1+
import t from '@babel/types';
22
import { type NodePath, type Visitor } from '@babel/traverse';
33
import { addDefault } from '@babel/helper-module-imports';
44
import {

packages/babel-plugin-jsx/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as t from '@babel/types';
1+
import t from '@babel/types';
22
import { type NodePath } from '@babel/traverse';
33
import { isHTMLTag, isSVGTag } from '@vue/shared';
44
import type { State } from './interface';

0 commit comments

Comments
 (0)