From 85b7741f3c378b9037877e5e874c0c0be8e812b6 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Thu, 7 Jul 2022 09:50:56 +0800 Subject: [PATCH] test: update babel config --- .github/workflows/test.yml | 10 ---------- babel.config.js | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 41eedc76b..a37ba8fe0 100644 --- a/.github/workflows/test.yml +++ b/.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: diff --git a/babel.config.js b/babel.config.js index 8d79a58ea..8f5266f94 100644 --- a/babel.config.js +++ b/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',