<commit_before>var path = require("path");
// var webpack = require("webpack");
const merge = require('webpack-merge');

var prodConfig = {
  optimization: {
    minimize: true,
  },
};

module.exports = function(env) {
  return merge({
    context: path.resolve(__dirname),

    mode: "development",

    entry: {
      'isaac.js': ["./app/js/app/app.js"],
    },

    output: {
      path: path.resolve(__dirname, "app"),
      filename: '[name]',
    },
    
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: [/node_modules/, /app\/js\/lib/],
          use: 'babel-loader?cacheDirectory=true',
        },
        {
          test: /\.html$/,
          use: [
            { loader: 'ngtemplate-loader', options: { relativeTo: "/partials", prefix: "/partials", module: "isaac.templates" } },
            { loader: 'html-loader' }
          ]
        },
        {
          test: /(?!\.d)\.ts$/,
          use: [
            { loader: "babel-loader" },
            { loader: "ts-loader", options: { ignoreDiagnostics: [2306] } }
          ]
        },
        {
          test: /\.ne$/,
          use: "nearley-es6-loader"
        },
        { 
          test: path.resolve(__dirname, "node_modules", "jquery", "dist", "jquery.js"),
          use: [
            {loader:"expose-loader", options: "jQuery"},
            {loader:"expose-loader", options: "$"}
          ]
        },
        { 
          test: /modernizr/,
          use: [<commit_msg>:bug: Nearley compilation was missing the babel transpilation step.<commit_after>var path = require("path");
// var webpack = require("webpack");
const merge = require('webpack-merge');

var prodConfig = {
  optimization: {
    minimize: true,
  },
};

module.exports = function(env) {
  return merge({
    context: path.resolve(__dirname),

    mode: "development",

    entry: {
      'isaac.js': ["./app/js/app/app.js"],
    },

    output: {
      path: path.resolve(__dirname, "app"),
      filename: '[name]',
    },
    
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: [/node_modules/, /app\/js\/lib/],
          use: 'babel-loader?cacheDirectory=true',
        },
        {
          test: /\.html$/,
          use: [
            { loader: 'ngtemplate-loader', options: { relativeTo: "/partials", prefix: "/partials", module: "isaac.templates" } },
            { loader: 'html-loader' }
          ]
        },
        {
          test: /(?!\.d)\.ts$/,
          use: [
            { loader: "babel-loader" },
            { loader: "ts-loader", options: { ignoreDiagnostics: [2306] } }
          ]
        },
        {
          test: /\.ne$/,
          use: [
            { loader: "babel-loader" },
            { loader: "nearley-es6-loader" }
          ]
        },
        { 
          test: path.resolve(__dirname, "node_modules", "jquery", "dist", "jquery.js"),
          use: [
            {loader:"expose-loader", options: "jQuery"},
            {loader:"expose-loader", options: "$"}
          ]
        },
        { 
          test: /modernizr/,
          use: [
{'fraction_non_alphanumeric': 0.18055555555555555, 'fraction_numerical': 0.003229974160206718, 'mean_word_length': 1.5552805280528053, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '304505', 'n_tokens_mistral': 976, 'n_tokens_neox': 947, 'n_words': 177}