An open API service indexing awesome lists of open source software.

https://github.com/threefish/vite-plugin-monaco-editor-nls

使用vite处理monaco-editor语言支持。该方案为打包时进行源码替换,暂不能运行时切换语言。
https://github.com/threefish/vite-plugin-monaco-editor-nls

Last synced: about 2 months ago
JSON representation

使用vite处理monaco-editor语言支持。该方案为打包时进行源码替换,暂不能运行时切换语言。

Awesome Lists containing this project

README

        

# vite-plugin-monaco-editor-nls
使用vite处理monaco-editor语言支持。该方案为打包时进行源码替换,暂不能运行时切换语言。

## 原理

### 安装 "monaco-editor-nls": "^3.0.0"

### 然后通过 webpack 或vite 打包时对 monaco-editor 目录下的 monaco-editor/esm/vs/nls.js 的源码进行更改即可。