]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix sfc-playground build
authorEvan You <yyx990803@gmail.com>
Fri, 20 Oct 2023 03:25:27 +0000 (11:25 +0800)
committerEvan You <yyx990803@gmail.com>
Fri, 20 Oct 2023 03:27:24 +0000 (11:27 +0800)
@vitejs/plugin-vue 4.4 now relies on vue APIs, so we need to
also build the CJS dist files from a fresh repo

package.json
scripts/build.js

index de5f089c186cd721a0d2f10737259cfa6321d601..476a241fff98d24c4a277763451f92db126d0088 100644 (file)
@@ -32,8 +32,8 @@
     "dev-sfc-run": "run-p \"dev compiler-sfc -f esm-browser\" \"dev vue -if esm-bundler-runtime\" \"dev server-renderer -if esm-bundler\" dev-sfc-serve",
     "serve": "serve",
     "open": "open http://localhost:3000/packages/template-explorer/local.html",
-    "build-sfc-playground": "run-s build-compiler-cjs build-runtime-esm build-ssr-esm build-sfc-playground-self",
-    "build-compiler-cjs": "node scripts/build.js compiler reactivity-transform shared -af cjs",
+    "build-sfc-playground": "run-s build-all-cjs build-runtime-esm build-ssr-esm build-sfc-playground-self",
+    "build-all-cjs": "node scripts/build.js vue runtime compiler reactivity reactivity-transform shared -af cjs",
     "build-runtime-esm": "node scripts/build.js runtime reactivity shared -af esm-bundler && node scripts/build.js vue -f esm-bundler-runtime && node scripts/build.js vue -f esm-browser-runtime",
     "build-ssr-esm": "node scripts/build.js compiler-sfc server-renderer -f esm-browser",
     "build-sfc-playground-self": "cd packages/sfc-playground && npm run build",
index 154ed5b2d5152ec8affb4ef5407da8a8aa01b08c..77f711ce87fbddac8c875ae5a6c6f66a99dd9902 100644 (file)
@@ -17,7 +17,7 @@ nr build core --formats cjs
 */
 
 import fs from 'node:fs/promises'
-import { existsSync, readFileSync } from 'node:fs'
+import { existsSync } from 'node:fs'
 import path from 'node:path'
 import minimist from 'minimist'
 import { gzipSync, brotliCompressSync } from 'node:zlib'