]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: sync runtime-vapor version with other packages and tweak package.json
authorEvan You <evan@vuejs.org>
Mon, 3 Feb 2025 05:22:25 +0000 (13:22 +0800)
committerEvan You <evan@vuejs.org>
Mon, 3 Feb 2025 05:28:20 +0000 (13:28 +0800)
packages/runtime-vapor/README.md
packages/runtime-vapor/index.js [deleted file]
packages/runtime-vapor/package.json

index 125de1f776df4434e10572489861e4cc9273f6f5..ab8204db555a958f9f29ea4fda250e6f3dba1395 100644 (file)
@@ -1,4 +1,8 @@
 # @vue/runtime-vapor
 
-> **Note**
-> Work in progress. Do not use yet.
+This package only ships `esm-bundler` build because:
+
+1. Vapor mode requires SFC build.
+2. Vapor mode runtime only runs in the browser.
+
+The main `vue` package ships `dist/vue.runtime-with-vapor.esm-browser.js` which inlines this package. It is used for the SFC Playground only.
diff --git a/packages/runtime-vapor/index.js b/packages/runtime-vapor/index.js
deleted file mode 100644 (file)
index 5eefe12..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict'
-
-if (process.env.NODE_ENV === 'production') {
-  module.exports = require('./dist/runtime-vapor.cjs.prod.js')
-} else {
-  module.exports = require('./dist/runtime-vapor.cjs.js')
-}
index ae7659625f30387bb19f7f511b958a5200964ee8..4787ff8c10ae32f0741cf9194298ea68c1bb6ef5 100644 (file)
@@ -1,15 +1,21 @@
 {
   "name": "@vue/runtime-vapor",
-  "version": "3.0.0-vapor",
+  "version": "3.5.13",
   "description": "@vue/runtime-vapor",
   "main": "index.js",
   "module": "dist/runtime-vapor.esm-bundler.js",
   "types": "dist/runtime-vapor.d.ts",
-  "unpkg": "dist/runtime-vapor.global.js",
   "files": [
     "index.js",
     "dist"
   ],
+  "exports": {
+    ".": {
+      "types": "./dist/runtime-vapor.d.ts",
+      "default": "./dist/runtime-dom.esm-bundler.js"
+    },
+    "./*": "./*"
+  },
   "sideEffects": false,
   "buildOptions": {
     "name": "VueRuntimeVapor",