]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: tweak sfc playground build script
authorEvan You <yyx990803@gmail.com>
Sun, 28 Mar 2021 06:08:27 +0000 (02:08 -0400)
committerEvan You <yyx990803@gmail.com>
Sun, 28 Mar 2021 06:08:27 +0000 (02:08 -0400)
package.json

index 604e63eef3a5a9336abd37f40b37181aed15f061..a143dc23db4e98e4f2ee8aef6da1fd2767387b7b 100644 (file)
@@ -19,7 +19,8 @@
     "serve": "serve",
     "open": "open http://localhost:5000/packages/template-explorer/local.html",
     "preinstall": "node ./scripts/checkYarn.js",
-    "build-sfc-playground": "node scripts/build.js vue -df esm-browser && node scripts/build.js compiler-sfc -f esm-browser && cd packages/sfc-playground && vite build"
+    "prebuild-sfc-playground": "node scripts/build.js compiler shared -af cjs && 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 && node scripts/build.js compiler-sfc -f esm-browser",
+    "build-sfc-playground": "cd packages/sfc-playground && vite build"
   },
   "types": "test-dts/index.d.ts",
   "tsd": {