From dcde0d3fbb93f7a4ecdd6e6bc7e2876ef2e95a7c Mon Sep 17 00:00:00 2001 From: MengYX Date: Fri, 7 Feb 2020 14:41:21 +0800 Subject: [PATCH] Fix Babel Config --- .drone.yml | 2 +- babel.config.js | 7 +------ package.json | 1 - 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 236ab2d..55ce8bc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,7 +10,7 @@ steps: - name: installDependencies image: node:lts commands: - - npm ci + - npm ci --verbose --registry=https://registry.npm.taobao.org - name: build image: node:lts diff --git a/babel.config.js b/babel.config.js index ec9cfe1..9940564 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,11 +1,6 @@ module.exports = { presets: [ - '@vue/cli-plugin-babel/preset', - ["@babel/preset-env", { - "useBuiltIns": "entry", - "corejs": 3, - "modules": false - }] + '@vue/cli-plugin-babel/preset' ], plugins: [ ["component", { diff --git a/package.json b/package.json index 388c81f..5677bce 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "vue": "^2.6.11" }, "devDependencies": { - "@babel/preset-env": "^7.8.4", "@vue/cli-plugin-babel": "^4.1.2", "@vue/cli-plugin-pwa": "^4.1.2", "@vue/cli-service": "^4.1.2",