test: update babel config

This commit is contained in:
tangjinzhou 2022-07-07 09:50:56 +08:00
parent b440215842
commit 85b7741f3c
2 changed files with 1 additions and 11 deletions

View File

@ -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:

View File

@ -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',