Skip to content

Commit da0f370

Browse files
committed
fix builting for web
1 parent 81cb173 commit da0f370

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

typescript/src/dummyLanguageService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// only for basic testing, as vscode is actually using server
22
import ts from 'typescript/lib/tsserverlibrary'
3-
import path from 'path'
3+
import { nodeModules } from './utils'
44

55
export const createLanguageService = (files: Record<string, string>, { useLib = true }: { useLib?: boolean } = {}) => {
6+
const path = nodeModules!.path
67
let dummyVersion = 1
78
let defaultLibDir: string | undefined
89
const languageService = ts.createLanguageService({

0 commit comments

Comments
 (0)