Skip to content

Commit 32ab4de

Browse files
committed
fix: install dts
1 parent 75e5c82 commit 32ab4de

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"@babel/plugin-syntax-typescript": "^7.22.5",
2121
"@rollup/plugin-babel": "^6.0.3",
2222
"@types/babel__core": "^7.20.2",
23+
"@types/babel__helper-module-imports": "^7.18.0",
24+
"@types/babel__helper-plugin-utils": "^7.10.1",
2325
"@types/node": "^20.7.0",
2426
"@typescript-eslint/eslint-plugin": "^6.7.3",
2527
"@vitest/coverage-v8": "^0.34.5",

packages/babel-plugin-jsx/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"devDependencies": {
3939
"@babel/core": "^7.23.0",
4040
"@babel/preset-env": "^7.22.20",
41-
"@types/babel__helper-plugin-utils": "^7.10.1",
4241
"@types/babel__template": "^7.4.2",
4342
"@types/babel__traverse": "^7.20.2",
4443
"@types/svg-tags": "^1.0.0",

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type * as BabelCore from '@babel/core';
33
import template from '@babel/template';
44
// @ts-expect-error
55
import syntaxJsx from '@babel/plugin-syntax-jsx';
6-
// @ts-expect-error
76
import { addNamed, addNamespace, isModule } from '@babel/helper-module-imports';
87
import { type NodePath, type Visitor } from '@babel/traverse';
98
import ResolveType from '@vue/babel-plugin-resolve-type';
@@ -71,7 +70,10 @@ export default declare<VueJSXPluginOptions, BabelCore.PluginObj<State>>(
7170
];
7271
if (isModule(path)) {
7372
// import { createVNode } from "vue";
74-
const importMap: Record<string, t.Identifier> = {};
73+
const importMap: Record<
74+
string,
75+
t.MemberExpression | t.Identifier
76+
> = {};
7577
importNames.forEach((name) => {
7678
state.set(name, () => {
7779
if (importMap[name]) {

packages/babel-plugin-resolve-type/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
"devDependencies": {
4444
"@babel/core": "^7.22.11",
4545
"@types/babel__code-frame": "^7.0.3",
46-
"@types/babel__helper-module-imports": "^7.18.0",
47-
"@types/babel__helper-plugin-utils": "^7.10.1",
4846
"vue": "^3.3.4"
4947
}
5048
}

pnpm-lock.yaml

Lines changed: 6 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)