mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 10:25:42 +01:00
amd progress
This commit is contained in:
parent
f420968fc9
commit
967982e245
20 changed files with 283 additions and 111 deletions
|
|
@ -19,8 +19,14 @@ self.MonacoEnvironment = {
|
|||
if (label === 'typescript' || label === 'javascript') {
|
||||
return './out/vs/language/typescript/ts.worker.js';
|
||||
}
|
||||
return './out/vs/editor/editor.worker.js';
|
||||
//return './out/vs/editor/editor.worker.js';
|
||||
return './out/vs/editor/common/services/editorWebWorkerMain.js';
|
||||
}
|
||||
};
|
||||
|
||||
window.monacoAPI = monaco;
|
||||
|
||||
window.ed = monacoAPI.editor.create(document.getElementById('editor-container'), {
|
||||
value: '.test { color: blue; }',
|
||||
language: 'javascript'
|
||||
});
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@ const workerEntryPoints = [
|
|||
'vs/language/css/css.worker.js',
|
||||
'vs/language/html/html.worker.js',
|
||||
'vs/language/typescript/ts.worker.js',
|
||||
'vs/editor/editor.worker.js'
|
||||
//'vs/editor/editor.worker.js'
|
||||
'vs/editor/common/services/editorWebWorkerMain.js'
|
||||
];
|
||||
|
||||
build({
|
||||
|
|
|
|||
|
|
@ -42,13 +42,14 @@ async function runTests() {
|
|||
// uncomment to shortcircuit and run a specific combo
|
||||
// await runTest('webpack', 'chromium'); return;
|
||||
/** @type {PackagerKind[]} */
|
||||
const testTypes = ['amd', 'webpack', 'esbuild', 'vite'];
|
||||
//const testTypes = ['amd', 'webpack', 'esbuild', 'vite'];
|
||||
const testTypes = ['esbuild'];
|
||||
// TODO: add parcel! (this currently fails because parcel replaces process with {})
|
||||
|
||||
for (const type of testTypes) {
|
||||
await runTest(type, 'chromium');
|
||||
await runTest(type, 'firefox');
|
||||
await runTest(type, 'webkit');
|
||||
// await runTest(type, 'firefox');
|
||||
// await runTest(type, 'webkit');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -73,7 +74,7 @@ function runTest(packager, browser) {
|
|||
path.join(REPO_ROOT, 'node_modules/mocha/bin/mocha'),
|
||||
'test/smoke/*.test.js',
|
||||
'--no-delay',
|
||||
'--headless',
|
||||
//'--headless',
|
||||
'--timeout',
|
||||
'20000'
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue