text: const path = require('path')
  
  const node = {
    entry: './src/index.js',
    target: 'node',
    output: {
      libraryTarget: 'umd',
      path: path.resolve(__dirname, 'dist'),
      filename: 'lib.node.js'
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /(node_modules|bower_components)/,
          use: {
            loader: 'babel-loader'
          }
        }
      ]
    }
  }
  
  const browser = {
    entry: './src/index.js',
    target: 'web',
    output: {
      path: path.resolve(__dirname, 'dist'),
      filename: 'lib.js'
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /(node_modules|bower_components)/,
          use: {
            loader: 'babel-loader'
          }
        }
      ]
    }
  }
  
  module.exports = [node, browser]
  