diff --git a/babel.config.js b/babel.config.js index e396c26..67657de 100755 --- a/babel.config.js +++ b/babel.config.js @@ -20,6 +20,6 @@ module.exports = { plugins: [ // 可以添加其他Babel插件 '@babel/plugin-proposal-class-properties', - '@babel/plugin-transform-runtime', + '@babel/plugin-transform-runtime' ], }; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index a97fcfd..d9d620d 100755 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,7 @@ "@vue/cli-plugin-vuex": "~5.0.0", "@vue/cli-service": "~5.0.0", "babel-loader": "^9.2.1", + "babel-plugin-transform-remove-console": "^6.9.4", "eslint": "^7.32.0", "eslint-plugin-vue": "^8.0.3", "sass": "^1.32.7", @@ -3837,6 +3838,13 @@ "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, + "node_modules/babel-plugin-transform-remove-console": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.9.4.tgz", + "integrity": "sha512-88blrUrMX3SPiGkT1GnvVY8E/7A+k6oj3MNvUtTIxJflFzXTw1bHkuJ/y039ouhFMp2prRn5cQGzokViYi1dsg==", + "dev": true, + "license": "MIT" + }, "node_modules/babel-runtime": { "version": "6.26.0", "resolved": "https://registry.npmmirror.com/babel-runtime/-/babel-runtime-6.26.0.tgz", diff --git a/package.json b/package.json index b0f119b..9e024cc 100755 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "@vue/cli-plugin-vuex": "~5.0.0", "@vue/cli-service": "~5.0.0", "babel-loader": "^9.2.1", + "babel-plugin-transform-remove-console": "^6.9.4", "eslint": "^7.32.0", "eslint-plugin-vue": "^8.0.3", "sass": "^1.32.7", diff --git a/src/App.vue b/src/App.vue index d19fd5f..e751a54 100755 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,5 @@