vue-jsx 0.2.8 → 3.3.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +91 -92
  3. package/dist/api.d.ts +7 -0
  4. package/dist/api.js +2 -0
  5. package/dist/astro.d.ts +11 -0
  6. package/dist/astro.js +11 -0
  7. package/dist/bun.d.ts +6 -0
  8. package/dist/bun.js +5 -0
  9. package/dist/core-D6A0aY-g.js +11 -0
  10. package/dist/esbuild.d.ts +7 -0
  11. package/dist/esbuild.js +5 -0
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.js +2 -0
  14. package/dist/nuxt.d.ts +8 -0
  15. package/dist/nuxt.js +17 -0
  16. package/dist/options-DHzozgGn.d.ts +25 -0
  17. package/dist/raw.d.ts +7 -0
  18. package/dist/raw.js +64 -0
  19. package/dist/rolldown.d.ts +7 -0
  20. package/dist/rolldown.js +6 -0
  21. package/dist/rollup.d.ts +7 -0
  22. package/dist/rollup.js +5 -0
  23. package/dist/rsbuild.d.ts +9 -0
  24. package/dist/rsbuild.js +12 -0
  25. package/dist/rspack.d.ts +6 -0
  26. package/dist/rspack.js +5 -0
  27. package/dist/unplugin.d.ts +9 -0
  28. package/dist/unplugin.js +9 -0
  29. package/dist/vapor.d.ts +3 -0
  30. package/dist/vapor.js +3 -0
  31. package/dist/vite.d.ts +7 -0
  32. package/dist/vite.js +5 -0
  33. package/dist/volar.d.ts +7 -0
  34. package/dist/volar.js +770 -0
  35. package/dist/webpack.d.ts +7 -0
  36. package/dist/webpack.js +5 -0
  37. package/jsx-runtime/index.d.ts +10 -0
  38. package/jsx-runtime/index.js +11 -0
  39. package/package.json +107 -25
  40. package/.browserslistrc +0 -3
  41. package/.eslintrc.js +0 -17
  42. package/babel.config.js +0 -5
  43. package/dist/demo.html +0 -8
  44. package/dist/vue-jsx.common.js +0 -1645
  45. package/dist/vue-jsx.common.js.map +0 -1
  46. package/dist/vue-jsx.umd.js +0 -1655
  47. package/dist/vue-jsx.umd.js.map +0 -1
  48. package/dist/vue-jsx.umd.min.js +0 -2
  49. package/dist/vue-jsx.umd.min.js.map +0 -1
  50. package/postcss.config.js +0 -5
  51. package/public/favicon.ico +0 -0
  52. package/public/index.html +0 -17
  53. package/src/App.vue +0 -122
  54. package/src/assets/logo.png +0 -0
  55. package/src/components/HelloWorld.vue +0 -58
  56. package/src/index.js +0 -210
  57. package/src/main.js +0 -8
  58. package/vue.config.js +0 -11
@@ -0,0 +1,7 @@
1
+ import { t as Options } from "./options-DHzozgGn.js";
2
+ import * as _$unplugin from "unplugin";
3
+
4
+ //#region src/webpack.d.ts
5
+ declare const _default: (options?: Options | undefined) => _$unplugin.WebpackPluginInstance;
6
+ //#endregion
7
+ export { _default as default };
@@ -0,0 +1,5 @@
1
+ import unplugin from "./unplugin.js";
2
+ //#region src/webpack.ts
3
+ var webpack_default = unplugin.webpack;
4
+ //#endregion
5
+ export { webpack_default as default };
@@ -0,0 +1,10 @@
1
+ import type { Fragment, VNode } from 'vue'
2
+ export type { JSX } from 'vue-jsx'
3
+
4
+ declare global {
5
+ export type { JSX } from 'vue-jsx'
6
+ }
7
+
8
+ declare function jsx(type: any, props: any, key: any): VNode
9
+
10
+ export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs }
@@ -0,0 +1,11 @@
1
+ import { Fragment, h } from 'vue'
2
+
3
+ function jsx(type, props, key) {
4
+ const { children, 'v-slots': vSlots } = props
5
+ delete props.children
6
+ delete props['v-slots']
7
+ if (arguments.length > 2) props.key = key
8
+ return h(type, props, vSlots || children)
9
+ }
10
+
11
+ export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs }
package/package.json CHANGED
@@ -1,33 +1,115 @@
1
1
  {
2
2
  "name": "vue-jsx",
3
- "version": "0.2.8",
4
- "main": "dist/vue-jsx.umd.js",
5
- "scripts": {
6
- "serve": "vue-cli-service serve",
7
- "build": "vue-cli-service build --target lib --name vue-jsx src/index.js",
8
- "lint": "vue-cli-service lint"
9
- },
3
+ "type": "module",
4
+ "version": "3.3.0-beta.0",
5
+ "description": "High-performance Vue JSX Compiler powered by Oxc",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/vuejs/vue-jsx-vapor#readme",
10
8
  "repository": {
11
9
  "type": "git",
12
- "url": "https://github.com/bravf/vue-jsx"
10
+ "url": "git+https://github.com/vuejs/vue-jsx-vapor.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/vuejs/vue-jsx-vapor/issues"
14
+ },
15
+ "keywords": [
16
+ "unplugin",
17
+ "vite",
18
+ "webpack",
19
+ "rollup",
20
+ "compiler",
21
+ "vue-jsx",
22
+ "volar",
23
+ "vapor"
24
+ ],
25
+ "exports": {
26
+ ".": "./dist/index.js",
27
+ "./astro": "./dist/astro.js",
28
+ "./rspack": "./dist/rspack.js",
29
+ "./rsbuild": "./dist/rsbuild.js",
30
+ "./vite": "./dist/vite.js",
31
+ "./webpack": "./dist/webpack.js",
32
+ "./rollup": "./dist/rollup.js",
33
+ "./esbuild": "./dist/esbuild.js",
34
+ "./nuxt": "./dist/nuxt.js",
35
+ "./api": "./dist/api.js",
36
+ "./raw": "./dist/raw.js",
37
+ "./rolldown": "./dist/rolldown.js",
38
+ "./bun": "./dist/bun.js",
39
+ "./unplugin": "./dist/unplugin.js",
40
+ "./jsx-runtime": "./jsx-runtime/index.js",
41
+ "./vapor": "./dist/vapor.js",
42
+ "./volar": "./dist/volar.js",
43
+ "./*": "./*"
44
+ },
45
+ "main": "dist/index.js",
46
+ "types": "dist/index.d.ts",
47
+ "typesVersions": {
48
+ "*": {
49
+ "*": [
50
+ "./dist/*",
51
+ "./*"
52
+ ],
53
+ "jsx-runtime": [
54
+ "./jsx-runtime/index.d.ts"
55
+ ]
56
+ }
57
+ },
58
+ "files": [
59
+ "dist",
60
+ "jsx-runtime"
61
+ ],
62
+ "peerDependencies": {
63
+ "@nuxt/kit": "^3",
64
+ "@nuxt/schema": "^3",
65
+ "esbuild": "*",
66
+ "rollup": "^3",
67
+ "vite": ">=3",
68
+ "vue": "^3",
69
+ "webpack": "^4 || ^5"
70
+ },
71
+ "peerDependenciesMeta": {
72
+ "@nuxt/kit": {
73
+ "optional": true
74
+ },
75
+ "@nuxt/schema": {
76
+ "optional": true
77
+ },
78
+ "esbuild": {
79
+ "optional": true
80
+ },
81
+ "rollup": {
82
+ "optional": true
83
+ },
84
+ "vite": {
85
+ "optional": true
86
+ },
87
+ "webpack": {
88
+ "optional": true
89
+ }
13
90
  },
14
91
  "dependencies": {
15
- "vue": "^2.5.17"
92
+ "@vue-jsx/compiler": "3.3.0-beta.0",
93
+ "@vue-jsx/macros": "3.3.0-beta.0",
94
+ "@vue-jsx/runtime": "3.3.0-beta.0",
95
+ "@vue/shared": "3.6.0-rc.5",
96
+ "pathe": "^2.0.3",
97
+ "ts-macro": "^0.3.7",
98
+ "unplugin": "^3.0.0",
99
+ "unplugin-utils": "^0.3.1"
16
100
  },
17
101
  "devDependencies": {
18
- "@vue/cli-plugin-babel": "^3.2.0",
19
- "@vue/cli-plugin-eslint": "^3.2.0",
20
- "@vue/cli-service": "^3.2.0",
21
- "babel-eslint": "^10.0.1",
22
- "eslint": "^5.8.0",
23
- "eslint-plugin-vue": "^5.0.0-0",
24
- "node-sass": "^4.10.0",
25
- "postcss-pxtorem": "^4.0.1",
26
- "pug": "^2.0.3",
27
- "pug-plain-loader": "^1.0.0",
28
- "sass-loader": "^7.1.0",
29
- "vue-template-compiler": "^2.5.17"
30
- },
31
- "author": "bravf",
32
- "license": "ISC"
33
- }
102
+ "@nuxt/kit": "^3.21.4",
103
+ "@nuxt/schema": "^3.21.4",
104
+ "@vue-macros/volar": "^3.1.4",
105
+ "vue": "3.6.0-rc.5"
106
+ },
107
+ "scripts": {
108
+ "build": "tsdown",
109
+ "dev": "DEV=true tsdown",
110
+ "lint": "eslint .",
111
+ "play": "npm -C playground run dev",
112
+ "release": "bumpp && npm publish",
113
+ "test": "vitest"
114
+ }
115
+ }
package/.browserslistrc DELETED
@@ -1,3 +0,0 @@
1
- > 1%
2
- last 2 versions
3
- not ie <= 8
package/.eslintrc.js DELETED
@@ -1,17 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true
5
- },
6
- 'extends': [
7
- 'plugin:vue/essential',
8
- 'eslint:recommended'
9
- ],
10
- rules: {
11
- 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
12
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
13
- },
14
- parserOptions: {
15
- parser: 'babel-eslint'
16
- }
17
- }
package/babel.config.js DELETED
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- '@vue/app'
4
- ]
5
- }
package/dist/demo.html DELETED
@@ -1,8 +0,0 @@
1
- <meta charset="utf-8">
2
- <title>vue-jsx demo</title>
3
- <script src="./vue-jsx.umd.js"></script>
4
- <link rel="stylesheet" href="./vue-jsx.css">
5
-
6
- <script>
7
- console.log(vue-jsx)
8
- </script>