Skip to content

Commit 3f26219

Browse files
authored
Fixes CI (#5190)
1 parent c9e76ad commit 3f26219

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

build/amd/plugin.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// TODO merge this with the ESM version plugin.
77
// The main difference is that in this context, the default output is AMD, so ?esm would be outputted as AMD as well.
88

9+
// TODO: adopt @vscode/esm-rollup-plugin when it becomes available.
10+
911
/**
1012
* @type {() => import('rollup').Plugin}
1113
*/
@@ -31,14 +33,16 @@ export function urlToEsmPlugin() {
3133
while ((match = regex.exec(code)) !== null) {
3234
let path = match[2];
3335

34-
if (!path.startsWith('.') && !path.startsWith('/')) {
35-
path = `./${path}`;
36+
// Skip invalid paths (e.g., "..." in error messages)
37+
if (!path || path === '...' || !/^[./\w@-]/.test(path)) {
38+
continue;
3639
}
3740

3841
const start = match.index;
3942
const end = start + match[0].length;
4043

4144
const varName = `__worker_url_${idx++}__`;
45+
console.log(`Rewriting worker URL import in ${id}: ${path}?worker`);
4246
additionalImports.push(`import ${varName} from ${JSON.stringify(path + '?worker&url')};`);
4347

4448
const replacement = varName;

monaco-lsp-client/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

monaco-lsp-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@hediet/json-rpc-websocket": "^0.5.1"
1212
},
1313
"peerDependencies": {
14-
"monaco-editor-core": "^0.54.0-dev-20250929"
14+
"monaco-editor-core": "*"
1515
},
1616
"devDependencies": {
1717
"rolldown": "^1.0.0-beta.41",

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"jsdom": "^19.0.0",
7171
"jsonc-parser": "^3.0.0",
7272
"mocha": "^11.7.4",
73-
"monaco-editor-core": "0.56.0-dev-20260112-1",
73+
"monaco-editor-core": "0.56.0-dev-20260115",
7474
"parcel": "^2.7.0",
7575
"pin-github-action": "^1.8.0",
7676
"postcss-url": "^10.1.3",

0 commit comments

Comments
 (0)