Skip to content

Commit cf4edce

Browse files
author
undefined
committed
chore: update to @vue/babel-plugin-jsx
1 parent 56ffcc6 commit cf4edce

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

antd-tools/getBabelCommonConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module.exports = function(modules) {
44
const plugins = [
5-
require.resolve('@ant-design-vue/babel-plugin-jsx'),
5+
require.resolve('@vue/babel-plugin-jsx'),
66
require.resolve('@babel/plugin-proposal-optional-chaining'),
77
require.resolve('@babel/plugin-transform-object-assign'),
88
require.resolve('@babel/plugin-proposal-object-rest-spread'),

antd-tools/getWebpackConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function getWebpackConfig(modules) {
8383
options: {
8484
presets: [require.resolve('@babel/preset-env')],
8585
plugins: [
86-
require.resolve('@ant-design-vue/babel-plugin-jsx'),
86+
require.resolve('@vue/babel-plugin-jsx'),
8787
require.resolve('@babel/plugin-proposal-object-rest-spread'),
8888
],
8989
},

antdv-demo

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
test: {
44
presets: [['@babel/preset-env', { targets: { node: true } }]],
55
plugins: [
6-
['@ant-design-vue/babel-plugin-jsx'],
6+
['@vue/babel-plugin-jsx'],
77
'@babel/plugin-proposal-optional-chaining',
88
'@babel/plugin-transform-object-assign',
99
'@babel/plugin-proposal-object-rest-spread',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
"vue": ">=3.0.0"
6262
},
6363
"devDependencies": {
64-
"@ant-design-vue/babel-plugin-jsx": "^1.0.0-rc.1",
6564
"@babel/cli": "^7.8.4",
6665
"@babel/core": "^7.10.5",
6766
"@babel/plugin-proposal-class-properties": "^7.8.3",
@@ -79,6 +78,7 @@
7978
"@commitlint/cli": "^8.0.0",
8079
"@commitlint/config-conventional": "^8.0.0",
8180
"@octokit/rest": "^16.0.0",
81+
"@vue/babel-plugin-jsx": "^1.0.0-rc.2",
8282
"@vue/cli-plugin-eslint": "^4.0.0",
8383
"@vue/compiler-sfc": "^3.0.0-rc.5",
8484
"@vue/server-test-utils": "1.0.0-beta.16",

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = {
5252
style: true,
5353
},
5454
],
55-
['@ant-design-vue/babel-plugin-jsx', { transformOn: true, usePatchFlag: false }],
55+
['@vue/babel-plugin-jsx'],
5656
'@babel/plugin-proposal-optional-chaining',
5757
'@babel/plugin-transform-object-assign',
5858
'@babel/plugin-proposal-object-rest-spread',

0 commit comments

Comments
 (0)