Skip to content

Commit 969482c

Browse files
committed
chore: add @babel/plugin-proposal-optional-chaining
1 parent 45b83d5 commit 969482c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"@babel/plugin-proposal-class-properties": "^7.8.3",
6666
"@babel/plugin-proposal-export-default-from": "^7.8.3",
6767
"@babel/plugin-proposal-object-rest-spread": "^7.9.6",
68+
"@babel/plugin-proposal-optional-chaining": "^7.10.1",
6869
"@babel/plugin-transform-member-expression-literals": "^7.8.3",
6970
"@babel/plugin-transform-object-assign": "^7.8.3",
7071
"@babel/plugin-transform-property-literals": "^7.8.3",

webpack.config.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ module.exports = {
3737
],
3838
],
3939
plugins: [
40-
['@ant-design-vue/babel-plugin-jsx', { transformOn: true, compatibleProps: true }],
40+
['@ant-design-vue/babel-plugin-jsx', { transformOn: true }],
41+
'@babel/plugin-proposal-optional-chaining',
4142
'@babel/plugin-transform-object-assign',
4243
'@babel/plugin-proposal-object-rest-spread',
4344
'@babel/plugin-proposal-export-default-from',
@@ -85,8 +86,6 @@ module.exports = {
8586
extensions: ['.js', '.jsx', '.vue'],
8687
},
8788
devServer: {
88-
host: 'localhost',
89-
port: 3002,
9089
historyApiFallback: {
9190
rewrites: [{ from: /./, to: '/index.html' }],
9291
},

0 commit comments

Comments
 (0)