mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Add ESM localization documentation and working sample
Co-authored-by: hediet <2931520+hediet@users.noreply.github.com>
This commit is contained in:
parent
74c8b62784
commit
4dc457ffe4
9 changed files with 1717 additions and 353 deletions
30
samples/browser-esm-localized/webpack.config.js
Normal file
30
samples/browser-esm-localized/webpack.config.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
mode: 'development',
|
||||
entry: {
|
||||
app: './index.js',
|
||||
'editor.worker': '../../out/monaco-editor/esm/vs/editor/editor.worker.start.js',
|
||||
'json.worker': '../../out/monaco-editor/esm/vs/language/json/json.worker.js',
|
||||
'css.worker': '../../out/monaco-editor/esm/vs/language/css/css.worker.js',
|
||||
'html.worker': '../../out/monaco-editor/esm/vs/language/html/html.worker.js',
|
||||
'ts.worker': '../../out/monaco-editor/esm/vs/language/typescript/ts.worker.js'
|
||||
},
|
||||
output: {
|
||||
globalObject: 'self',
|
||||
filename: '[name].bundle.js',
|
||||
path: path.resolve(__dirname, 'dist')
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: ['style-loader', 'css-loader']
|
||||
},
|
||||
{
|
||||
test: /\.ttf$/,
|
||||
use: ['file-loader']
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue