Browse Source

test: update babel config

pull/5784/head
tangjinzhou 2 years ago
parent
commit
85b7741f3c
  1. 10
      .github/workflows/test.yml
  2. 2
      babel.config.js

10
.github/workflows/test.yml

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

2
babel.config.js

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