Skip to content

Commit 9058853

Browse files
committed
chore: fix sfc-playground build
@vitejs/plugin-vue 4.4 now relies on vue APIs, so we need to also build the CJS dist files from a fresh repo
1 parent 13d8b06 commit 9058853

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"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",
3333
"serve": "serve",
3434
"open": "open http://localhost:3000/packages/template-explorer/local.html",
35-
"build-sfc-playground": "run-s build-compiler-cjs build-runtime-esm build-ssr-esm build-sfc-playground-self",
36-
"build-compiler-cjs": "node scripts/build.js compiler reactivity-transform shared -af cjs",
35+
"build-sfc-playground": "run-s build-all-cjs build-runtime-esm build-ssr-esm build-sfc-playground-self",
36+
"build-all-cjs": "node scripts/build.js vue runtime compiler reactivity reactivity-transform shared -af cjs",
3737
"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",
3838
"build-ssr-esm": "node scripts/build.js compiler-sfc server-renderer -f esm-browser",
3939
"build-sfc-playground-self": "cd packages/sfc-playground && npm run build",

scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ nr build core --formats cjs
1717
*/
1818

1919
import fs from 'node:fs/promises'
20-
import { existsSync, readFileSync } from 'node:fs'
20+
import { existsSync } from 'node:fs'
2121
import path from 'node:path'
2222
import minimist from 'minimist'
2323
import { gzipSync, brotliCompressSync } from 'node:zlib'

0 commit comments

Comments
 (0)