text: const path = require('path')
  module.exports = {
    mode: 'production',
    entry: path.resolve(__dirname, 'src/main.js'),
    output: {
      filename: 'main.js',
      path: path.resolve(__dirname, 'dist'),
      library: 'filterNull',
      globalObject: 'this',
      libraryTarget: 'umd',
      umdNamedDefine: true
    },
    module: {
      rules: [
        {
          test: /(\.js)$/,
          use: {
            loader: 'babel-loader',
            options: {
              presets: [
                '@babel/preset-env'
              ]
            }
          },
          exclude: path.resolve(__dirname, 'node_modules'),
          include: path.resolve(__dirname, 'src')
        }
      ]
    }
  }
  