mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 09:20:10 +01:00
Adds vite esm example (#5094)
This commit is contained in:
parent
b62a81677f
commit
d38215cf6b
8 changed files with 1743 additions and 0 deletions
19
samples/browser-esm-vite/vite.config.ts
Normal file
19
samples/browser-esm-vite/vite.config.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { defineConfig } from 'vite';
|
||||
import { join } from 'path';
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
fs: {
|
||||
allow: ['../../', '../../../vscode']
|
||||
}
|
||||
},
|
||||
resolve: {
|
||||
alias: [{
|
||||
find: 'monaco-editor-core/esm/vs',
|
||||
replacement: join(__dirname, '../../../vscode/src/vs')
|
||||
}, {
|
||||
find: 'monaco-editor-core',
|
||||
replacement: join(__dirname, '../../../vscode/src/vs/editor/editor.main.ts')
|
||||
}],
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue