test: update babel config

pull/5784/head
tangjinzhou 2 years ago
parent b440215842
commit 85b7741f3c

@ -98,16 +98,6 @@ jobs:
- name: checkout
uses: actions/checkout@v2
# with:
# token: ${{ secrets.ACCESS_TOKEN }}
# - name: Checkout submodules
# uses: actions/checkout@v2
# with:
# repository: tangjinzhou/antdv-demo
# token: ${{ secrets.ACCESS_TOKEN }}
# path: antdv-demo
# submodules: true
- name: restore cache from package-lock.json
uses: actions/cache@v2
with:

@ -1,7 +1,7 @@
module.exports = {
env: {
test: {
presets: [['@babel/preset-env', { targets: { node: true } }]],
presets: [['@babel/preset-env']],
plugins: [
['@vue/babel-plugin-jsx', { mergeProps: false, enableObjectSlots: false }],
'@babel/plugin-proposal-optional-chaining',

Loading…
Cancel
Save