<commit_before>import babel from "rollup-plugin-babel";
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import external from "rollup-plugin-peer-deps-external";
import sass from "rollup-plugin-sass";
import postcss from "rollup-plugin-postcss";
import url from "rollup-plugin-url";
import { eslint } from "rollup-plugin-eslint";
import stylelint from "rollup-plugin-stylelint";
import svgr from "@svgr/rollup";

/* postCSS plugins */
import simplevars from "postcss-simple-vars";
import nested from "postcss-nested";

import pkg from "./package.json";

export default {
  input: "src/index.js",
  output: [
    {
      file: pkg.main,
      format: "cjs",
      sourcemap: true
    },
    {
      file: pkg.module,
      format: "es",
      sourcemap: true
    }
  ],
  plugins: [
    external(),
    eslint({
      throwOnError: true,
      throwOnWarning: true
    }),
    stylelint({
      throwOnError: true,
      throwOnWarning: true
    }),
    postcss({
      plugins: [simplevars(), nested()],
      modules: true
    }),
    sass({ insert: true }),
    url(),
    svgr(),
    babel({
      exclude: "node_modules/**"
    }),
    resolve(),
    commonjs()
  ]
};<commit_msg>fix: mark prop-types and uuid as external to avoid bundling them (#582)<commit_after>import babel from "rollup-plugin-babel";
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import external from "rollup-plugin-peer-deps-external";
import sass from "rollup-plugin-sass";
import postcss from "rollup-plugin-postcss";
import url from "rollup-plugin-url";
import { eslint } from "rollup-plugin-eslint";
import stylelint from "rollup-plugin-stylelint";
import svgr from "@svgr/rollup";

/* postCSS plugins */
import simplevars from "postcss-simple-vars";
import nested from "postcss-nested";

import pkg from "./package.json";

export default {
  input: "src/index.js",
  output: [
    {
      file: pkg.main,
      format: "cjs",
      sourcemap: true
    },
    {
      file: pkg.module,
      format: "es",
      sourcemap: true
    }
  ],
  plugins: [
    external(),
    eslint({
      throwOnError: true,
      throwOnWarning: true
    }),
    stylelint({
      throwOnError: true,
      throwOnWarning: true
    }),
    postcss({
      plugins: [simplevars(), nested()],
      modules: true
    }),
    sass({ insert: true }),
    url(),
    svgr(),
    babel({
      exclude: "node_modules/**"
    }),
    resolve(),
    commonjs()
  ],
  external: ["prop-types", "uuid"]
};
{'fraction_non_alphanumeric': 0.1448087431693989, 'fraction_numerical': 0.00117096018735363, 'mean_word_length': 2.9491525423728815, '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': '6153121', 'n_tokens_mistral': 831, 'n_tokens_neox': 820, 'n_words': 212}