Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions build/amd/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// TODO merge this with the ESM version plugin.
// The main difference is that in this context, the default output is AMD, so ?esm would be outputted as AMD as well.

// TODO: adopt @vscode/esm-rollup-plugin when it becomes available.

/**
* @type {() => import('rollup').Plugin}
*/
Expand All @@ -31,14 +33,16 @@ export function urlToEsmPlugin() {
while ((match = regex.exec(code)) !== null) {
let path = match[2];

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

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

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

const replacement = varName;
Expand Down
2 changes: 1 addition & 1 deletion monaco-lsp-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion monaco-lsp-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@hediet/json-rpc-websocket": "^0.5.1"
},
"peerDependencies": {
"monaco-editor-core": "^0.54.0-dev-20250929"
"monaco-editor-core": "*"
},
"devDependencies": {
"rolldown": "^1.0.0-beta.41",
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"jsdom": "^19.0.0",
"jsonc-parser": "^3.0.0",
"mocha": "^11.7.4",
"monaco-editor-core": "0.56.0-dev-20260112-1",
"monaco-editor-core": "0.56.0-dev-20260115",
"parcel": "^2.7.0",
"pin-github-action": "^1.8.0",
"postcss-url": "^10.1.3",
Expand Down