From 0c8dd94ef9fe33f72732e7d9ec52b8e72918df8f Mon Sep 17 00:00:00 2001 From: inottn Date: Tue, 18 Feb 2025 08:18:34 +0800 Subject: [PATCH] fix(ci): use `with` instead of `assert` syntax (#12901) --- scripts/size-report.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/size-report.js b/scripts/size-report.js index f92577d0d1..47b25bb830 100644 --- a/scripts/size-report.js +++ b/scripts/size-report.js @@ -111,7 +111,7 @@ async function renderUsages() { */ async function importJSON(filePath) { if (!existsSync(filePath)) return undefined - return (await import(filePath, { assert: { type: 'json' } })).default + return (await import(filePath, { with: { type: 'json' } })).default } /** -- 2.47.2