Skip to content

Commit

Permalink
doc: update installation instructions for Vite
Browse files Browse the repository at this point in the history
Make assetsInclude for Vite more specific

Include as asssets all wasm files in vscode-oniguruma
  • Loading branch information
TaeHagen committed Jun 6, 2023
1 parent 4ab2407 commit 8e7e84d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ npm install -D @types/vscode
}
```

If you use Vite, add in your vite.config.js:
```js
assetsInclude: ['node_modules/vscode-oniguruma/**/*.wasm']
```

### Why?

Monaco-editor is a library that is constructed using code from vscode and goes through an intense treeshaking process.
Expand Down Expand Up @@ -261,4 +266,4 @@ With this library, it would be possible to plug vscode-languageclient directly o

- Adding some tweaks to the VSCode LanguageClient (Removing unsupported features...)
- Providing some examples on how to build an app using it
- Adding some tools (DisposableCollection)
- Adding some tools (DisposableCollection)

0 comments on commit 8e7e84d

Please sign in to comment.