<commit_before>import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import sourceMaps from 'rollup-plugin-sourcemaps';
import uglify from 'rollup-plugin-uglify';
import camelCase from 'lodash.camelcase';

const pkg = require('./package.json');

const libraryName = 'poa';

export default {
  input: `compiled/${libraryName}.js`,
  output: [{ file: pkg.main, format: 'es' }],
  sourcemap: true,
  // Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
  external: ['react', 'react-dom'],
  watch: {
    include: 'compiled/**'
  },
  plugins: [
    // Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
    commonjs(),
    // Allow node_modules resolution, so you can use 'external' to control
    // which external modules to include in the bundle
    // https://github.com/rollup/rollup-plugin-node-resolve#usage
    resolve()

    // Resolve source maps to the original source
    sourceMaps()
  ]
};<commit_msg>fix(compile): Rollup compile plugins<commit_after>import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import sourceMaps from 'rollup-plugin-sourcemaps';
import uglify from 'rollup-plugin-uglify';
import camelCase from 'lodash.camelcase';

const pkg = require('./package.json');

const libraryName = 'poa';

export default {
  input: `compiled/${libraryName}.js`,
  output: [{ file: pkg.main, format: 'es' }],
  sourcemap: true,
  // Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
  external: ['react', 'react-dom'],
  watch: {
    include: 'compiled/**'
  },
  plugins: [
    // Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
    commonjs(),
    // Allow node_modules resolution, so you can use 'external' to control
    // which external modules to include in the bundle
    // https://github.com/rollup/rollup-plugin-node-resolve#usage
    resolve(),

    // Resolve source maps to the original source
    sourceMaps()
  ]
};
{'fraction_non_alphanumeric': 0.13229571984435798, 'fraction_numerical': 0.0, 'mean_word_length': 3.874407582938389, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3344643', 'n_tokens_mistral': 638, 'n_tokens_neox': 619, 'n_words': 197}