npm

weapp-plugin-babel

0.2.6 • Public • Published

weapp-plugin-babel

编译 js 语法 ,可以在 config 定义规则也可以在根目录新建 .babelrc

安装

npm i weapp-plugin-babel -D

使用

weapp.config.js

module.exports = {
  plugins: [
    ['weapp-plugin-babel', {
        ignore: undefined,
        match: /\.js$/,
        ...config
    }]
    // 'weapp-plugin-babel',
  ],
};

Package Sidebar

Install

npm i weapp-plugin-babel

Weekly Downloads

1

Version

0.2.6

License

MIT

Unpacked Size

4.64 kB

Total Files

4

Last publish

Collaborators

  • bzone