Skip to content

Commit 1769cd6

Browse files
authored
fix(typescript-plugin): use path-browserify instead of node:path (#5304)
1 parent c625c8e commit 1769cd6

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Diff for: packages/typescript-plugin/lib/requests/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { VueVirtualCode } from '@vue/language-core';
22
import { camelize, capitalize } from '@vue/shared';
3-
import * as path from 'node:path';
3+
import * as path from 'path-browserify';
44
import type * as ts from 'typescript';
55

66
export function getComponentType(

Diff for: packages/typescript-plugin/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
"dependencies": {
1616
"@volar/typescript": "~2.4.11",
1717
"@vue/language-core": "3.0.0-alpha.2",
18-
"@vue/shared": "^3.5.0"
18+
"@vue/shared": "^3.5.0",
19+
"path-browserify": "^1.0.1"
1920
},
2021
"devDependencies": {
21-
"@types/node": "^22.10.4"
22+
"@types/node": "^22.10.4",
23+
"@types/path-browserify": "^1.0.1"
2224
}
2325
}

Diff for: pnpm-lock.yaml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)