chore: update to @vue/babel-plugin-jsx

pull/2805/head
undefined 2020-09-07 22:28:29 +08:00
parent 56ffcc6619
commit cf4edceca6
6 changed files with 6 additions and 6 deletions

View File

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

View File

@ -83,7 +83,7 @@ function getWebpackConfig(modules) {
options: {
presets: [require.resolve('@babel/preset-env')],
plugins: [
require.resolve('@ant-design-vue/babel-plugin-jsx'),
require.resolve('@vue/babel-plugin-jsx'),
require.resolve('@babel/plugin-proposal-object-rest-spread'),
],
},

@ -1 +1 @@
Subproject commit 781e98fde2744f187082905da6ab2df5d45770df
Subproject commit a581157eaeca312744b551b7eda653f3059a9065

View File

@ -3,7 +3,7 @@ module.exports = {
test: {
presets: [['@babel/preset-env', { targets: { node: true } }]],
plugins: [
['@ant-design-vue/babel-plugin-jsx'],
['@vue/babel-plugin-jsx'],
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-transform-object-assign',
'@babel/plugin-proposal-object-rest-spread',

View File

@ -61,7 +61,6 @@
"vue": ">=3.0.0"
},
"devDependencies": {
"@ant-design-vue/babel-plugin-jsx": "^1.0.0-rc.1",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.10.5",
"@babel/plugin-proposal-class-properties": "^7.8.3",
@ -79,6 +78,7 @@
"@commitlint/cli": "^8.0.0",
"@commitlint/config-conventional": "^8.0.0",
"@octokit/rest": "^16.0.0",
"@vue/babel-plugin-jsx": "^1.0.0-rc.2",
"@vue/cli-plugin-eslint": "^4.0.0",
"@vue/compiler-sfc": "^3.0.0-rc.5",
"@vue/server-test-utils": "1.0.0-beta.16",

View File

@ -52,7 +52,7 @@ module.exports = {
style: true,
},
],
['@ant-design-vue/babel-plugin-jsx', { transformOn: true, usePatchFlag: false }],
['@vue/babel-plugin-jsx'],
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-transform-object-assign',
'@babel/plugin-proposal-object-rest-spread',