We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1331dd3 commit a82c017Copy full SHA for a82c017
example/scripts/typescript.ts
@@ -31,6 +31,12 @@ import { create as createTypeScriptPlugins } from 'volar-service-typescript'
31
import { type TextDocument } from 'vscode-languageserver-textdocument'
32
import { URI } from 'vscode-uri'
33
34
+globalThis.process = {
35
+ cwd() {
36
+ return '/'
37
+ }
38
+} as NodeJS.Process
39
+
40
/**
41
* Convert markdown content to a DOM node.
42
*
example/typescript.html
@@ -22,13 +22,6 @@
22
<div class="buttons">
23
<button id="format-button" type="button">Format</button>
24
</div>
25
- <script>
26
- globalThis.process = {
27
- cwd() {
28
- return '/'
29
- }
30
- </script>
<script type="module" src="./scripts/typescript.ts"></script>
</body>
</html>
0 commit comments