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语言支持。该方案为打包时进行源码替换,暂不能运行时切换语言。
- Host: GitHub
- URL: https://github.com/threefish/vite-plugin-monaco-editor-nls
- Owner: threefish
- Created: 2022-10-26T01:40:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-26T01:54:09.000Z (over 2 years ago)
- Last Synced: 2025-02-01T04:13:25.604Z (4 months ago)
- Language: TypeScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 的源码进行更改即可。