mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-12-09 15:09:40 +08:00
chore: upgrade deps
This commit is contained in:
22
package.json
22
package.json
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "vue-jsx-monorepo",
|
||||
"type": "module",
|
||||
"version": "2.0.1",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@10.23.0",
|
||||
"type": "module",
|
||||
"packageManager": "pnpm@10.24.0",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"vue",
|
||||
"jsx"
|
||||
],
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"dev": "pnpm -C packages/jsx-explorer run dev",
|
||||
"build": "tsdown",
|
||||
@@ -22,24 +22,24 @@
|
||||
"devDependencies": {
|
||||
"@babel/plugin-syntax-typescript": "^7.27.1",
|
||||
"@rollup/plugin-babel": "^6.1.0",
|
||||
"@sxzz/eslint-config": "^7.3.2",
|
||||
"@sxzz/prettier-config": "^2.2.5",
|
||||
"@sxzz/eslint-config": "^7.4.1",
|
||||
"@sxzz/prettier-config": "^2.2.6",
|
||||
"@types/babel__core": "^7.20.5",
|
||||
"@types/babel__helper-module-imports": "^7.18.3",
|
||||
"@types/babel__helper-plugin-utils": "^7.10.3",
|
||||
"@types/node": "^24.10.1",
|
||||
"@typescript/native-preview": "7.0.0-dev.20251202.1",
|
||||
"@vitest/coverage-v8": "^4.0.14",
|
||||
"@vitest/coverage-v8": "^4.0.15",
|
||||
"@vue/babel-plugin-jsx": "workspace:*",
|
||||
"bumpp": "^10.3.1",
|
||||
"bumpp": "^10.3.2",
|
||||
"eslint": "^9.39.1",
|
||||
"jsdom": "^27.2.0",
|
||||
"prettier": "3.6.2",
|
||||
"tsdown": "^0.16.7",
|
||||
"prettier": "3.7.3",
|
||||
"tsdown": "^0.17.0-beta.5",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "~5.9.3",
|
||||
"vite": "^7.2.4",
|
||||
"vitest": "^4.0.14"
|
||||
"vite": "^7.2.6",
|
||||
"vitest": "^4.0.15"
|
||||
},
|
||||
"prettier": "@sxzz/prettier-config"
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"name": "@vue/babel-helper-vue-transform-on",
|
||||
"type": "module",
|
||||
"version": "2.0.1",
|
||||
"description": "to help transform on",
|
||||
"type": "module",
|
||||
"author": "Amour1688 <lcz_1996@foxmail.com>",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git",
|
||||
"directory": "packages/babel-helper-vue-transform-on"
|
||||
},
|
||||
"author": "Amour1688 <lcz_1996@foxmail.com>",
|
||||
"exports": {
|
||||
".": "./index.mjs",
|
||||
"./package.json": "./package.json"
|
||||
|
||||
@@ -1,25 +1,19 @@
|
||||
{
|
||||
"name": "@vue/babel-plugin-jsx",
|
||||
"type": "module",
|
||||
"version": "2.0.1",
|
||||
"description": "Babel plugin for Vue 3 JSX",
|
||||
"type": "module",
|
||||
"author": "Amour1688 <lcz_1996@foxmail.com>",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/vuejs/babel-plugin-jsx/tree/dev/packages/babel-plugin-jsx#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/babel-plugin-jsx/issues"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git",
|
||||
"directory": "packages/babel-plugin-jsx"
|
||||
},
|
||||
"author": "Amour1688 <lcz_1996@foxmail.com>",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/babel-plugin-jsx/issues"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"dev": "./src/index.ts",
|
||||
@@ -27,6 +21,12 @@
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"publishConfig": {
|
||||
"exports": {
|
||||
".": "./dist/index.js",
|
||||
|
||||
@@ -1,26 +1,20 @@
|
||||
{
|
||||
"name": "@vue/babel-plugin-resolve-type",
|
||||
"type": "module",
|
||||
"version": "2.0.1",
|
||||
"description": "Babel plugin for resolving Vue types.",
|
||||
"type": "module",
|
||||
"author": "Kevin Deng <sxzz@sxzz.moe>",
|
||||
"license": "MIT",
|
||||
"funding": "https://github.com/sponsors/sxzz",
|
||||
"homepage": "https://github.com/vuejs/babel-plugin-jsx/tree/dev/packages/babel-plugin-resolve-type#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/babel-plugin-jsx/issues"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git",
|
||||
"directory": "packages/babel-plugin-resolve-type"
|
||||
},
|
||||
"author": "Kevin Deng <sxzz@sxzz.moe>",
|
||||
"funding": "https://github.com/sponsors/sxzz",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/babel-plugin-jsx/issues"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"dev": "./src/index.ts",
|
||||
@@ -28,6 +22,12 @@
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"publishConfig": {
|
||||
"exports": {
|
||||
".": "./dist/index.js",
|
||||
|
||||
@@ -75,15 +75,12 @@ const plugin: (
|
||||
if (!t.isIdentifier(node.callee, { name: 'defineComponent' })) return
|
||||
if (!checkDefineComponent(path)) return
|
||||
|
||||
// eslint-disable-next-line baseline-js/use-baseline
|
||||
const comp = node.arguments[0]
|
||||
if (!comp || !t.isFunction(comp)) return
|
||||
|
||||
// eslint-disable-next-line baseline-js/use-baseline
|
||||
let options = node.arguments[1]
|
||||
if (!options) {
|
||||
options = t.objectExpression([])
|
||||
// eslint-disable-next-line baseline-js/use-baseline
|
||||
node.arguments.push(options)
|
||||
}
|
||||
|
||||
@@ -94,12 +91,9 @@ const plugin: (
|
||||
emitsGenerics = node.typeParameters.params[1]
|
||||
}
|
||||
|
||||
// eslint-disable-next-line baseline-js/use-baseline
|
||||
node.arguments[1] =
|
||||
processProps(comp, propsGenerics, options) || options
|
||||
// eslint-disable-next-line baseline-js/use-baseline
|
||||
node.arguments[1] =
|
||||
// eslint-disable-next-line baseline-js/use-baseline
|
||||
processEmits(comp, emitsGenerics, node.arguments[1]) || options
|
||||
},
|
||||
VariableDeclarator(path) {
|
||||
@@ -131,7 +125,6 @@ const plugin: (
|
||||
if (args.length === 0) return
|
||||
|
||||
if (args.length === 1) {
|
||||
// eslint-disable-next-line baseline-js/use-baseline
|
||||
init.node.arguments.push(t.objectExpression([]))
|
||||
}
|
||||
args[1] = addProperty(t, args[1], nameProperty)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "@vue/jsx-explorer",
|
||||
"type": "module",
|
||||
"version": "2.0.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
|
||||
806
pnpm-lock.yaml
generated
806
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user