test: update babel config
parent
b440215842
commit
85b7741f3c
|
@ -98,16 +98,6 @@ jobs:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
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
|
- name: restore cache from package-lock.json
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
env: {
|
env: {
|
||||||
test: {
|
test: {
|
||||||
presets: [['@babel/preset-env', { targets: { node: true } }]],
|
presets: [['@babel/preset-env']],
|
||||||
plugins: [
|
plugins: [
|
||||||
['@vue/babel-plugin-jsx', { mergeProps: false, enableObjectSlots: false }],
|
['@vue/babel-plugin-jsx', { mergeProps: false, enableObjectSlots: false }],
|
||||||
'@babel/plugin-proposal-optional-chaining',
|
'@babel/plugin-proposal-optional-chaining',
|
||||||
|
|
Loading…
Reference in New Issue