amd progress

This commit is contained in:
Henning Dieterichs 2025-07-30 18:28:24 +02:00
parent f420968fc9
commit 967982e245
No known key found for this signature in database
GPG key ID: 771381EFFDB9EC06
20 changed files with 283 additions and 111 deletions

View file

@ -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'
});

View file

@ -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({

View file

@ -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'
],