]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(ci): use `with` instead of `assert` syntax (#12901)
authorinottn <inottn@outlook.com>
Tue, 18 Feb 2025 00:18:34 +0000 (08:18 +0800)
committerGitHub <noreply@github.com>
Tue, 18 Feb 2025 00:18:34 +0000 (08:18 +0800)
scripts/size-report.js

index f92577d0d124b2601ecd84c9ccee7c7fa744ce38..47b25bb8302cfc228b4470ef0139cdc99ab87e03 100644 (file)
@@ -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
 }
 
 /**