Update dependency oxc-parser to v0.143.0 (#19778)

Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
renovate[bot]andfisker authored and GitHub committed 2026-08-04 22:26:56 +08:00
1 parent 315f281982
commit 55584a2114
3 files changed
+95 -103

No files matched your search

+8 -2
View File
@@ -13,7 +13,7 @@ const runYarn = (command, options) =>
spawn("yarn", command.split(" "), options);
async function install(version) {
const directory = new URL(`./installing.${Date.now()}/`, TEMPORARY_DIRECTORY);
const directory = new URL(`./working.${Date.now()}/`, TEMPORARY_DIRECTORY);
await fs.rm(directory, { force: true, recursive: true });
await fs.mkdir(directory, { recursive: true });
@@ -87,7 +87,11 @@ async function buildEntry(directory) {
text = text.replace(wasmUrlPattern, "");
text = text.replace(
"await fetch(__wasmUrl).then((res) => res.arrayBuffer())",
"const __wasmResponse = await globalThis.fetch(__wasmUrl);",
"const __wasmResponse = {ok: true};",
);
text = text.replace(
"await __wasmResponse.arrayBuffer();",
outdent`
__base64ToArrayBuffer(
/* "${wasmUrl}" */ ${JSON.stringify(wasmBase64String)}
@@ -95,6 +99,8 @@ async function buildEntry(directory) {
`,
);
text = text.replace("await __rollbackWasiInitialization()", "[]");
text = text.replaceAll(
/new URL\((?<url>".*?"), import\.meta\.url\)/g,
"{/* $<url> */}",