<commit_before>import resolve from 'rollup-plugin-node-resolve';
import eslint from 'rollup-plugin-eslint';
import babel from 'rollup-plugin-babel';
import commonjs from 'rollup-plugin-commonjs';
import replace from 'rollup-plugin-replace';
import pkg from './package.json';

export default [
    {
        entry: 'src/index.js',
        external: ['react'],
        targets: [
            { dest: pkg.main, format: 'umd' },
            { dest: pkg['jsnext:main'], format: 'es' },
        ],
        moduleName: 'reactAccessibleTooltip',
        plugins: [
            resolve({
                jsnext: true,
                main: true,
                browser: true,
            }),
            eslint(),
            babel(),
            commonjs(),
            replace({
                exclude: 'node_modules/**',
                ENV: JSON.stringify(process.env.NODE_ENV || 'development'),
            }),
        ],
    },
];<commit_msg>Update rollup config to reflect deprecations in the Rollup API<commit_after>import resolve from 'rollup-plugin-node-resolve';
import eslint from 'rollup-plugin-eslint';
import babel from 'rollup-plugin-babel';
import commonjs from 'rollup-plugin-commonjs';
import replace from 'rollup-plugin-replace';
import pkg from './package.json';

export default [
    {
        input: 'src/index.js',
        external: ['react'],
        output: [
            { file: pkg.main, format: 'umd' },
            { file: pkg['jsnext:main'], format: 'es' },
        ],
        name: 'reactAccessibleTooltip',
        plugins: [
            resolve({
                jsnext: true,
                main: true,
                browser: true,
            }),
            eslint(),
            babel(),
            commonjs(),
            replace({
                exclude: 'node_modules/**',
                ENV: JSON.stringify(process.env.NODE_ENV || 'development'),
            }),
        ],
    },
];
{'fraction_non_alphanumeric': 0.13513513513513514, 'fraction_numerical': 0.0, 'mean_word_length': 1.7421652421652423, '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': '2396707', 'n_tokens_mistral': 539, 'n_tokens_neox': 515, 'n_words': 125}