text: const path = require('path');
  const webpack = require('webpack');
  
  const libraryName = 'noQuery';
  const outputFile = `${libraryName}.min.js`;
  
  
  module.exports = {
    mode: 'production',
    entry: './src/index.js',
    output: {
      library: libraryName,
      libraryTarget: 'umd',
      libraryExport: 'default',
      path: path.resolve(__dirname, 'dist'),
      filename: outputFile,
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          use: [
            {
              loader: 'babel-loader',
              options: {
                presets: ['@babel/preset-env'],
              },
            },
          ],
        },
      ],
    },
    plugins: [],
  };