{"size": 499, "ext": "js", "max_stars_repo_path": "lib/build/webpack/extend/es.js", "max_stars_repo_name": "howieyi/iosecret", "max_stars_repo_stars_event_min_datetime": "2020-07-01T08:17:27.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-08T14:48:07.000Z", "max_issues_repo_path": "lib/build/webpack/extend/es.js", "max_issues_repo_name": "howieyi/water", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/build/webpack/extend/es.js", "max_forks_repo_name": "howieyi/water", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 9, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.6956521739, "max_line_length": 58, "alphanum_fraction": 0.5270541082}
const { join } = require("path");
const { excludeFile } = require("../../../utils/ignore");

// es 延展
module.exports = ({ vue }, { module }) => {
  const commonLoader = {
    test: /\.jsx?$/,
    loader: "babel-loader",
    exclude: excludeFile,
    options: {
      sourceMaps: true,
      babelrc: true,
      // cacheDirectory: true,
      configFile: join(
        __dirname,
        `../../../config/${vue ? "vue" : "react"}.babelrc`
      ),
    },
  };

  module.rules.push(commonLoader);
};
