diff --git a/package.json b/package.json index 23f8253e..bd6432d9 100644 --- a/package.json +++ b/package.json @@ -135,6 +135,7 @@ "lodash.throttle": "^4.1.1", "mocha": "^10.0.0", "modify-json-file": "^1.2.2", + "path-browserify": "^1.0.1", "pluralize": "github:plurals/pluralize#36f03cd2d573fa6d23e12e1529fa4627e2af74b4", "rambda": "^7.2.1", "require-from-string": "^2.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cfd7a28b..b942dd19 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,6 +38,7 @@ importers: lodash.throttle: ^4.1.1 mocha: ^10.0.0 modify-json-file: ^1.2.2 + path-browserify: ^1.0.1 pluralize: github:plurals/pluralize#36f03cd2d573fa6d23e12e1529fa4627e2af74b4 rambda: ^7.2.1 require-from-string: ^2.0.2 @@ -76,6 +77,7 @@ importers: lodash.throttle: 4.1.1 mocha: 10.0.0 modify-json-file: 1.2.2 + path-browserify: 1.0.1 pluralize: github.com/plurals/pluralize/36f03cd2d573fa6d23e12e1529fa4627e2af74b4 rambda: 7.2.1 require-from-string: 2.0.2 diff --git a/typescript/src/definitions.ts b/typescript/src/definitions.ts index 7c37b24d..ce102f84 100644 --- a/typescript/src/definitions.ts +++ b/typescript/src/definitions.ts @@ -1,6 +1,6 @@ -import { join } from 'path' import { GetConfig } from './types' import { findChildContainingExactPosition } from './utils' +import { join } from 'path-browserify' export default (proxy: ts.LanguageService, info: ts.server.PluginCreateInfo, c: GetConfig) => { proxy.getDefinitionAndBoundSpan = (fileName, position) => {