2.0.1 • Published 6 years ago

@mindev/min-compiler-babel v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

min babel 编译器

安装

$ npm install @mindev/min-compiler-babel --save-dev

配置 min.config.js

module.exports = {
  compilers: {
    babel: {
      sourceMaps: 'inline',
      presets: [
        'env'
      ],
      plugins: [
        'syntax-export-extensions',
        'transform-class-properties',
        'transform-decorators-legacy',
        'transform-export-extensions'
      ]
    }
  }
}

参数说明

Babel

Tip

  • min cli 2.x 版本开始支持