monaco-editor-esm-webpack-plugin
Advanced tools
Changelog
2.1.0
2022-04-21
nls.js
now in monaco-editor
Changelog
2.0.0
2020-01-04
monaco-editor
with monaco-editor-webpack-plugin
(such as, monaco-editor#0.21.*
with monaco-editor-webpack-plugin#2.*.*
)Changelog
1.0.3
2019-12-12
Fix the demo in README.md
is not correct.
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
import { setLocaleData } from 'monaco-editor-nls';
import zh_CN from 'monaco-editor-nls/locale/zh-hans';
setLocaleData(zh_CN);
monaco.editor.create(document.getElementById('container'), { language: 'javascript' });
to
// index.js
import { setLocaleData } from 'monaco-editor-nls';
import zh_CN from 'monaco-editor-nls/locale/zh-hans';
setLocaleData(zh_CN);
// You must import/require after `setLocaleData`
const monaco = require('monaco-editor/esm/vs/editor/editor.api');
monaco.editor.create(document.getElementById('root'), { language: 'javascript' });
Changelog
1.0.2
2019-10-25
monaco-editor-nls
's version (1.0.0) to 1.0.2, because it not support es5
.