text: const path = require("path");
  const UglifyJSPlugin = require("uglifyjs-webpack-plugin");
  
  module.exports = {
    entry: "./src/index.js",
    output: {
      path: path.resolve(__dirname, "dist"),
      filename: "v-appear.js"
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /(node_modules|bower_components)/,
          use: {
            loader: "babel-loader"
          }
        }
      ]
    },
    plugins: [
      new UglifyJSPlugin({
        sourceMap: true
      })
    ],
    externals: {
      jquery: {
        commonjs: "jquery",
        commonjs2: "jquery",
        amd: "jquery",
        root: "$"
      }
    }
  };
  