<commit_before>import babel from 'rollup-plugin-babel'
import minify from 'rollup-plugin-babel-minify'
import local from 'rollup-plugin-local-resolve'
import pkg from './package.json'

let external = [
  ...Object.keys(pkg.dependencies),
  'babel-runtime/regenerator',
  'babel-runtime/helpers/asyncToGenerator',
  'babel-runtime/helpers/typeof'
]

let globals = {
  'babel-runtime/regenerator': '_regeneratorRuntime',
  'babel-runtime/helpers/asyncToGenerator': '_asyncToGenerator',
  'babel-runtime/helpers/typeof': '_typeof'
}

let plugins = [
  minify({ comments: false, mangle: true }),
  local()
]
let pluginsMain = [
  babel({ exclude: [ '*.json', 'node_modules/**/*' ], runtimeHelpers: true }),
  ...plugins
]
let pluginsNode = [
  babel({
    babelrc: false,
    exclude: [ '*.json', 'node_modules/**/*' ],
    runtimeHelpers: true,
    presets: [ [ 'env', { targets: { node: 6 }, modules: false } ], 'stage-0' ],
    plugins: [ [ 'transform-runtime', { polyfill: false, regenerator: true } ]
    ]
  }),
  ...plugins
]
let pluginsLegacy = [
  babel({
    exclude: [ '*.json', 'node_modules/**/*' ],
    runtimeHelpers: true,
    presets: [ [ 'env', { targets: { browsers: ['last 10 years'], node: 6 }, modules: false } ], 'stage-0' ]
  }),
  ...plugins
]

export default [
  {
    input: 'src/index.js',
    external,
    plugins: pluginsMain,
    output: [
      {
        file: pkg.main,
        format: 'cjs',
        sourcemap: true,
        globals
      },
      {
        file: pkg.module,
        format: 'es',<commit_msg>style: fix eslint issues<commit_after>import babel from 'rollup-plugin-babel'
import minify from 'rollup-plugin-babel-minify'
import local from 'rollup-plugin-local-resolve'
import pkg from './package.json'

let external = [
  ...Object.keys(pkg.dependencies),
  'babel-runtime/regenerator',
  'babel-runtime/helpers/asyncToGenerator',
  'babel-runtime/helpers/typeof'
]

let globals = {
  'babel-runtime/regenerator': '_regeneratorRuntime',
  'babel-runtime/helpers/asyncToGenerator': '_asyncToGenerator',
  'babel-runtime/helpers/typeof': '_typeof'
}

let plugins = [
  minify({ comments: false, mangle: true }),
  local()
]
let pluginsMain = [
  babel({ exclude: [ '*.json', 'node_modules/**/*' ], runtimeHelpers: true }),
  ...plugins
]
let pluginsNode = [
  babel({
    babelrc: false,
    exclude: [ '*.json', 'node_modules/**/*' ],
    runtimeHelpers: true,
    presets: [ [ 'env', { targets: { node: 6 }, modules: false } ], 'stage-0' ],
    plugins: [ [ 'transform-runtime', { polyfill: false, regenerator: true } ]
    ]
  }),
  ...plugins
]
let pluginsLegacy = [
  babel({
    exclude: [ '*.json', 'node_modules/**/*' ],
    runtimeHelpers: true,
    presets: [ [ 'env', { targets: { browsers: [ 'last 10 years' ], node: 6 }, modules: false } ], 'stage-0' ]
  }),
  ...plugins
]

export default [
  {
    input: 'src/index.js',
    external,
    plugins: pluginsMain,
    output: [
      {
        file: pkg.main,
        format: 'cjs',
        sourcemap: true,
        globals
      },
      {
        file: pkg.module,
        format: 'es',
{'fraction_non_alphanumeric': 0.17620433236340122, 'fraction_numerical': 0.0038797284190106693, 'mean_word_length': 3.018181818181818, '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': '804544', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1027, 'n_words': 226}