text: var path = require('path');
  
  module.exports = {
      mode: 'production',
      entry: './src/index.jsx',
      output: {
          path: path.resolve('lib'),
          filename: 'index.js',
          libraryTarget: 'commonjs2'
      },
      module: {
          rules: [
              {
                  test: /\.jsx?$/,
                  exclude: /(node_modules)/,
                  use: 'babel-loader'
              },
              {
                test: /\.less$/,
                exclude: /node_modules/,
                loaders: ['style-loader', 'css-loader', 'less-loader']
              }
          ]
      }
  }
  