mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
Fixes worker sandbox problems (#4975)
This commit is contained in:
parent
a4d7907bd4
commit
6f3fbe8c3a
5 changed files with 114 additions and 32 deletions
|
|
@ -3,6 +3,7 @@ import { glob } from 'node:fs/promises';
|
|||
import { basename, dirname, join, resolve } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { defineConfig } from 'vite';
|
||||
import { urlToEsmPlugin } from './plugin';
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
|
|
@ -77,7 +78,8 @@ export default defineConfig(async (args) => {
|
|||
source: readFileSync(resolve(__dirname, './src/loader.js'), 'utf-8')
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
urlToEsmPlugin()
|
||||
]
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue