2.0.0 • Published 4 years ago

@mrohyang/babel-plugin-ivcomponent v2.0.0

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

babel-plugin-ivcomponent

适用于开发 https://m.v.qq.com/txi/dev/ 组件的 babel plugin。

安装与使用

npm install @chenng/babel-plugin-ivcomponent -D
// webpack.config.js
rules: [
  {
    test: /\.js$/,
    exclude: /node_modules/,
    use: {
      loader: 'babel-loader',
      options: {
        plugins: ['@chenng/babel-plugin-ivcomponent'], // 配置插件
        presets: ['@babel/preset-env'],
      }
    }
  }
]

本地调试

# 开发
comp="Bubble" npm run dev

# 打包
comp="Bubble" npm run build