<commit_before>const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')
//const HtmlWebpackPlugin = require('html-webpack-plugin')
//const webpack = require('webpack')

module.exports = {
    entry: {
        demo: './src/demo/index.js',
        'browser-ui-state': './src/browser-ui-state/index.js'
    },
    output: {
        filename: '[name].js',
        path: path.resolve(__dirname, 'dist'),
        library: 'BrowserUiState',
        libraryTarget: 'window'
    },
    module: {
        rules: [
            { test: /\.js$/, exclude: /node_modules/, use: {
                loader: 'babel-loader',
                options: {
                    //babelrc: false,
                    presets: ['env'],
                    //below is everything from preset 'env' except module-transformations,
                    //so that ModuleConcatenationPlugin do its job
                    //and so Cucumber still has Babel transformations via .babelrc
                    /*plugins: [
                        'check-es2015-constants',
                        'syntax-trailing-function-commas',
                        'transform-async-to-generator',
                        'transform-es2015-arrow-functions',
                        'transform-es2015-block-scoped-functions',
                        'transform-es2015-block-scoping',
                        'transform-es2015-classes',
                        'transform-es2015-computed-properties',
                        'transform-es2015-destructuring',
                        'transform-es2015-duplicate-keys',
                        'transform-es2015-for-of',
                        'transform-es2015-function-name',
                        'transform-es2015-literals',
                        'transform-es2015-object-super',
                        'transform-es2015-parameters',
                        'transform-es2015-shorthand-properties',<commit_msg>Trying to fix Cucumber in dependent swipe-up lib which don't like imports in browser-ui-state (patch)<commit_after>const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')
//const HtmlWebpackPlugin = require('html-webpack-plugin')
//const webpack = require('webpack')

module.exports = {
    entry: {
        demo: './src/demo/index.js',
        'browser-ui-state': './src/browser-ui-state/index.js'
    },
    output: {
        filename: '[name].js',
        path: path.resolve(__dirname, 'dist'),
        library: 'BrowserUiState',
        libraryTarget: 'umd'
    },
    module: {
        rules: [
            { test: /\.js$/, exclude: /node_modules/, use: {
                loader: 'babel-loader',
                options: {
                    //babelrc: false,
                    presets: ['env'],
                    //below is everything from preset 'env' except module-transformations,
                    //so that ModuleConcatenationPlugin do its job
                    //and so Cucumber still has Babel transformations via .babelrc
                    /*plugins: [
                        'check-es2015-constants',
                        'syntax-trailing-function-commas',
                        'transform-async-to-generator',
                        'transform-es2015-arrow-functions',
                        'transform-es2015-block-scoped-functions',
                        'transform-es2015-block-scoping',
                        'transform-es2015-classes',
                        'transform-es2015-computed-properties',
                        'transform-es2015-destructuring',
                        'transform-es2015-duplicate-keys',
                        'transform-es2015-for-of',
                        'transform-es2015-function-name',
                        'transform-es2015-literals',
                        'transform-es2015-object-super',
                        'transform-es2015-parameters',
                        'transform-es2015-shorthand-properties',
{'fraction_non_alphanumeric': 0.11678832116788321, 'fraction_numerical': 0.02819028441983388, 'mean_word_length': 1.4290953545232274, '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': '186232', 'n_tokens_mistral': 1100, 'n_tokens_neox': 981, 'n_words': 177}