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 } /**