<commit_before>import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';
import replace from '@rollup/plugin-replace';
import run from '@rollup/plugin-run';

export default {

    input: ['./src/index.ts'],

    output: {
        file: './dist/index.js',
        name: 'backend',
        format: 'cjs',
        sourcemap: true
    },

    plugins: [

        //  Parse our .ts source files
        resolve({
            extensions: ['.ts', '.tsx']
        }),

        replace({
            preventAssignment: true,
            'process.env.ALLOWED_ORIGIN': JSON.stringify('http://localhost:10001/')
        }),

        commonjs({ sourcemap: true }),

        //  See https://www.npmjs.com/package/rollup-plugin-typescript2 for config options
        typescript(),

        run()
    ]
};<commit_msg>Fixed CORS origin for localhost<commit_after>import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';
import replace from '@rollup/plugin-replace';
import run from '@rollup/plugin-run';

export default {

    input: ['./src/index.ts'],

    output: {
        file: './dist/index.js',
        name: 'backend',
        format: 'cjs',
        sourcemap: true
    },

    plugins: [

        //  Parse our .ts source files
        resolve({
            extensions: ['.ts', '.tsx']
        }),

        replace({
            preventAssignment: true,
            'process.env.ALLOWED_ORIGIN': JSON.stringify('http://localhost:10001')
        }),

        commonjs({ sourcemap: true }),

        //  See https://www.npmjs.com/package/rollup-plugin-typescript2 for config options
        typescript(),

        run()
    ]
};
{'fraction_non_alphanumeric': 0.14681440443213298, 'fraction_numerical': 0.006648199445983379, 'mean_word_length': 2.213523131672598, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6246568', 'n_tokens_mistral': 542, 'n_tokens_neox': 520, 'n_words': 120}