12345678910111213141516171819202122 |
- /*
- * @FilePath: babel.config.js
- * @Author: 阿小凉
- * @Date: 2022-09-06 17:31:51
- * @LastEditors: 阿小凉
- * @LastEditTime: 2024-03-14 16:44:53
- * @Description:
- */
- let transformRemoveConsolePlugin = []
- //判断是开发还是发布阶段
- if (process.env.ENV === 'online') {
- transformRemoveConsolePlugin = ['transform-remove-console']
- }
- module.exports = {
- presets: ['@vue/cli-plugin-babel/preset'],
- env: {
- development: {
- plugins: ['dynamic-import-node'],
- },
- },
- plugins: [...transformRemoveConsolePlugin],
- }
|