text: const plugins = [];
  
  if (process.env.UNI_OPT_TREESHAKINGNG) {
    plugins.push(require('@yump/vue-cli-plugin-uni-optimize/packages/babel-plugin-uni-api/index.js'));
  }
  
  if (process.env.UNI_PLATFORM === 'app-plus' && process.env.UNI_USING_V8) {
    const path = require('path');
  
    const isWin = /^win/.test(process.platform);
  
    const normalizePath = path => isWin ? path.replace(/\\/g, '/') : path;
  
    const input = normalizePath(process.env.UNI_INPUT_DIR);
    try {
      plugins.push([
        require('@yump/vue-cli-plugin-hbuilderx/packages/babel-plugin-console'),
        {
          file (file) {
            file = normalizePath(file);
            if (file.indexOf(input) === 0) {
              return path.relative(input, file);
            }
            return false;
          }
        }
      ]);
    } catch (e) {}
  }
  
  process.UNI_LIBRARIES = process.UNI_LIBRARIES || ['@yump/uni-ui'];
  process.UNI_LIBRARIES.forEach(libraryName => {
    plugins.push([
      'import',
      {
        'libraryName': libraryName,
        'customName': (name) => {
          return `${libraryName}/lib/${name}/${name}`;
        }
      }
    ]);
  });
  //生产模式将代码中console.log去掉
  if(['production','prod'].includes(process.env.NODE_ENV)){
    plugins.push("transform-remove-console");
  }
  
  module.exports = {
    presets: [
      [
        '@vue/app',
        {
          modules: 'commonjs',
          useBuiltIns: process.env.UNI_PLATFORM === 'h5' ? 'usage' : 'entry'
        }
      ]
    ],
    plugins
  };
  