{"size": 930, "ext": "js", "max_stars_repo_path": "web/config-overrides.js", "max_stars_repo_name": "cyla-app/cyla-app", "max_stars_repo_stars_event_min_datetime": "2020-12-01T08:25:52.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-10T15:21:03.000Z", "max_issues_repo_path": "web/config-overrides.js", "max_issues_repo_name": "cyla-app/cyla-app", "max_issues_repo_issues_event_min_datetime": "2021-01-02T17:32:16.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T11:29:48.000Z", "max_forks_repo_path": "web/config-overrides.js", "max_forks_repo_name": "cyla-app/cyla-app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 27, "max_forks_count": null, "avg_line_length": 28.1818181818, "max_line_length": 73, "alphanum_fraction": 0.611827957}
module.exports = function override(config, env) {
  const wasmExtensionRegExp = /libthemis\.wasm$/;

  config.resolve.extensions.push(".wasm");
  config.module.rules.forEach((rule) => {
    (rule.oneOf || []).forEach((oneOf) => {
      if (oneOf.loader && oneOf.loader.indexOf("file-loader") >= 0) {
        oneOf.exclude.push(wasmExtensionRegExp);
      }
    });
  });

  config.module.rules = [
    ...config.module.rules,
    // Emscripten JS files define a global. With `exportsloader` we can
    // load these files correctly (provided the global’s name is the same
    // as the file name).
    {
      test: /fibonacci\.js$/,
      loader: "exports-loader",
    },
    // wasm files should not be processed but just be emitted and we want
    // to have their public URL.
    {
      test: wasmExtensionRegExp,
      type: "javascript/auto",
      loader: "file-loader",
      options: {},
    },
  ];
  return config;
};
