From 1c09229a607c74f5def4fcc0ad2e87b9b0c6523e Mon Sep 17 00:00:00 2001 From: inottn Date: Tue, 18 Feb 2025 03:43:37 +0800 Subject: [PATCH] fix(ci): use `with` instead of `assert` syntax --- 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 f92577d0d12..47b25bb8302 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 } /**