From 2c8c691060884f3dae925420a054db802e43fa38 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 15 Nov 2024 14:36:37 +0800 Subject: [PATCH] fix: vue3-jsx examples are broken --- pnpm-lock.yaml | 64 ++++++++++++++++++++++++++---------- rspack/vue3-jsx/package.json | 2 +- rspack/vue3-tsx/package.json | 2 +- 3 files changed, 48 insertions(+), 20 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d54b4cad..4286d738 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2888,8 +2888,8 @@ importers: specifier: ^1.0.14 version: 1.0.14(@swc/helpers@0.5.13) '@vue/babel-plugin-jsx': - specifier: 1.1.1 - version: 1.1.1(@babel/core@7.25.8) + specifier: 1.2.5 + version: 1.2.5(@babel/core@7.25.8) babel-loader: specifier: 9.1.3 version: 9.1.3(@babel/core@7.25.8)(webpack@5.95.0) @@ -2913,8 +2913,8 @@ importers: specifier: ^1.0.14 version: 1.0.14(@swc/helpers@0.5.13) '@vue/babel-plugin-jsx': - specifier: 1.1.1 - version: 1.1.1(@babel/core@7.25.8) + specifier: 1.2.5 + version: 1.2.5(@babel/core@7.25.8) babel-loader: specifier: 9.1.3 version: 9.1.3(@babel/core@7.25.8)(webpack@5.95.0) @@ -7931,11 +7931,21 @@ packages: '@vue/babel-helper-vue-jsx-merge-props@1.4.0': resolution: {integrity: sha512-JkqXfCkUDp4PIlFdDQ0TdXoIejMtTHP67/pvxlgeY+u5k3LEdKuWZ3LK6xkxo52uDoABIVyRwqVkfLQJhk7VBA==} - '@vue/babel-helper-vue-transform-on@1.2.1': - resolution: {integrity: sha512-jtEXim+pfyHWwvheYwUwSXm43KwQo8nhOBDyjrUITV6X2tB7lJm6n/+4sqR8137UVZZul5hBzWHdZ2uStYpyRQ==} + '@vue/babel-helper-vue-transform-on@1.2.5': + resolution: {integrity: sha512-lOz4t39ZdmU4DJAa2hwPYmKc8EsuGa2U0L9KaZaOJUt0UwQNjNA3AZTq6uEivhOKhhG1Wvy96SvYBoFmCg3uuw==} + + '@vue/babel-plugin-jsx@1.2.5': + resolution: {integrity: sha512-zTrNmOd4939H9KsRIGmmzn3q2zvv1mjxkYZHgqHZgDrXz5B1Q3WyGEjO2f+JrmKghvl1JIRcvo63LgM1kH5zFg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + peerDependenciesMeta: + '@babel/core': + optional: true - '@vue/babel-plugin-jsx@1.1.1': - resolution: {integrity: sha512-j2uVfZjnB5+zkcbc/zsOc0fSNGCMMjaEXP52wdwdIfn0qjFfEYpYZBFKFg+HHnQeJCVrjOeO0YxgaL7DMrym9w==} + '@vue/babel-plugin-resolve-type@1.2.5': + resolution: {integrity: sha512-U/ibkQrf5sx0XXRnUZD1mo5F7PkpKyTbfXM3a3rC4YnUz6crHEz9Jg09jzzL6QYlXNto/9CePdOg/c87O4Nlfg==} + peerDependencies: + '@babel/core': ^7.0.0-0 '@vue/babel-plugin-transform-vue-jsx@1.4.0': resolution: {integrity: sha512-Fmastxw4MMx0vlgLS4XBX0XiBbUFzoMGeVXuMV08wyOfXdikAFqBTuYPR0tlk+XskL19EzHc39SgjrPGY23JnA==} @@ -18096,6 +18106,11 @@ snapshots: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.25.8)': + dependencies: + '@babel/core': 7.25.8 + '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 @@ -25190,21 +25205,34 @@ snapshots: '@vue/babel-helper-vue-jsx-merge-props@1.4.0': {} - '@vue/babel-helper-vue-transform-on@1.2.1': {} + '@vue/babel-helper-vue-transform-on@1.2.5': {} - '@vue/babel-plugin-jsx@1.1.1(@babel/core@7.25.8)': + '@vue/babel-plugin-jsx@1.2.5(@babel/core@7.25.8)': dependencies: - '@babel/helper-module-imports': 7.24.7(supports-color@5.5.0) - '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.25.8) - '@babel/template': 7.25.0 - '@babel/traverse': 7.25.3(supports-color@5.5.0) - '@babel/types': 7.25.2 - '@vue/babel-helper-vue-transform-on': 1.2.1 - camelcase: 6.3.0 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.25.8) + '@babel/template': 7.25.9 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 + '@vue/babel-helper-vue-transform-on': 1.2.5 + '@vue/babel-plugin-resolve-type': 1.2.5(@babel/core@7.25.8) html-tags: 3.3.1 svg-tags: 1.0.0 + optionalDependencies: + '@babel/core': 7.25.8 + transitivePeerDependencies: + - supports-color + + '@vue/babel-plugin-resolve-type@1.2.5(@babel/core@7.25.8)': + dependencies: + '@babel/code-frame': 7.26.2 + '@babel/core': 7.25.8 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.25.9 + '@babel/parser': 7.26.2 + '@vue/compiler-sfc': 3.5.8 transitivePeerDependencies: - - '@babel/core' - supports-color '@vue/babel-plugin-transform-vue-jsx@1.4.0(@babel/core@7.25.8)': diff --git a/rspack/vue3-jsx/package.json b/rspack/vue3-jsx/package.json index 38425cad..4f898ff2 100644 --- a/rspack/vue3-jsx/package.json +++ b/rspack/vue3-jsx/package.json @@ -14,7 +14,7 @@ "@babel/core": "7.25.8", "@rspack/cli": "^1.0.14", "@rspack/core": "^1.0.14", - "@vue/babel-plugin-jsx": "1.1.1", + "@vue/babel-plugin-jsx": "1.2.5", "babel-loader": "9.1.3" } } diff --git a/rspack/vue3-tsx/package.json b/rspack/vue3-tsx/package.json index 645c2738..a7a6883d 100644 --- a/rspack/vue3-tsx/package.json +++ b/rspack/vue3-tsx/package.json @@ -15,7 +15,7 @@ "@babel/preset-typescript": "^7.24.7", "@rspack/cli": "^1.0.14", "@rspack/core": "^1.0.14", - "@vue/babel-plugin-jsx": "1.1.1", + "@vue/babel-plugin-jsx": "1.2.5", "babel-loader": "9.1.3", "typescript": "^5.1.3", "vue-loader": "^17.2.2"