Execute oxfmt (#1166)

Ran
pnpm oxfmt .

This should get the web repo aligned so that we can better enforce oxfmt going forward.
This commit is contained in:
Austin
2026-06-16 20:30:08 -04:00
committed by GitHub
parent c5690d1edb
commit d2cb51d489
378 changed files with 5548 additions and 1974 deletions
+5 -2
View File
@@ -80,7 +80,8 @@ function renameEntries() {
}
// Match: import { i as Transport, n as DeviceStatusEnum, ... } from "./Foo-hash.js";
const CHUNK_IMPORT_RE = /^import\s*\{([^}]+)\}\s*from\s*"\.\/([A-Za-z]+-[A-Za-z0-9_-]+)\.js";\s*$/m;
const CHUNK_IMPORT_RE =
/^import\s*\{([^}]+)\}\s*from\s*"\.\/([A-Za-z]+-[A-Za-z0-9_-]+)\.js";\s*$/m;
function inlineChunks(entryPath) {
if (!existsSync(entryPath)) return;
@@ -150,7 +151,9 @@ function deleteOrphanedChunks() {
for (const entry of KNOWN_ENTRIES) {
const p = join(distDir, `${entry}.d.ts`);
if (!existsSync(p)) continue;
if (readFileSync(p, "utf8").includes(`./${f.replace(/\.d\.ts$/, ".js")}`)) {
if (
readFileSync(p, "utf8").includes(`./${f.replace(/\.d\.ts$/, ".js")}`)
) {
referenced = true;
break;
}