refactor: default import for cjs deps

This commit is contained in:
Kevin Deng
2025-10-07 01:12:13 +08:00
parent 70aa0cab11
commit 85d98b5b6f
6 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import * as t from '@babel/types'; import t from '@babel/types';
import type * as BabelCore from '@babel/core'; import type * as BabelCore from '@babel/core';
import _template from '@babel/template'; import _template from '@babel/template';
// @ts-expect-error // @ts-expect-error

View File

@@ -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 * as BabelCore from '@babel/core';
import { type Options } from '@vue/babel-plugin-resolve-type'; import { type Options } from '@vue/babel-plugin-resolve-type';

View File

@@ -1,4 +1,4 @@
import * as t from '@babel/types'; import t from '@babel/types';
import { type NodePath } from '@babel/traverse'; import { type NodePath } from '@babel/traverse';
import { createIdentifier } from './utils'; import { createIdentifier } from './utils';
import type { State } from './interface'; import type { State } from './interface';

View File

@@ -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 NodePath, type Visitor } from '@babel/traverse';
import type { State } from './interface'; import type { State } from './interface';
import { FRAGMENT, createIdentifier } from './utils'; import { FRAGMENT, createIdentifier } from './utils';

View File

@@ -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 NodePath, type Visitor } from '@babel/traverse';
import { addDefault } from '@babel/helper-module-imports'; import { addDefault } from '@babel/helper-module-imports';
import { import {

View File

@@ -1,4 +1,4 @@
import * as t from '@babel/types'; import t from '@babel/types';
import { type NodePath } from '@babel/traverse'; import { type NodePath } from '@babel/traverse';
import { isHTMLTag, isSVGTag } from '@vue/shared'; import { isHTMLTag, isSVGTag } from '@vue/shared';
import type { State } from './interface'; import type { State } from './interface';