fix (linter): linter setup

This commit is contained in:
MickaelK
2025-08-01 14:08:59 +10:00
parent a442c30509
commit 3c20f044f6
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ export async function loadWorker(baseURL, path, opts = {}) {
// at application_table.js:58:50
let code = await fetch(new URL(path, baseURL)).then((res) => res.text());
const importPathRE = new RegExp("import\\s+(?:[^'\";]*?\\s+from\\s+)?[\"']([^\"']+)[\"']", "gm");
code = code.replaceAll("import.meta.url", `"${baseURL}"`)
code = code.replaceAll("import.meta.url", `"${baseURL}"`);
code.matchAll(importPathRE).forEach(([_, path]) => {
code = code.replaceAll(path, new URL(path, baseURL));
});