<commit_before>const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');

const projectRootPath = path.resolve(
    __dirname,
    '../../../../'
);

const babelConfig = require('../../../../babel.config');
module.exports = {
    entry: {
        'lokijs-incremental-indexeddb': './src/plugins/worker/workers/lokijs-incremental-indexeddb.worker.ts',
        'lokijs-indexeddb': './src/plugins/worker/workers/lokijs-indexeddb.worker.ts',
        'lokijs-memory': './src/plugins/worker/workers/lokijs-memory.worker.ts',
        'lokijs-fs': './src/plugins/worker/workers/lokijs-fs.worker.ts',
        'pouchdb-idb': './src/plugins/worker/workers/pouchdb-idb.worker.ts',
        'pouchdb-memory': './src/plugins/worker/workers/pouchdb-memory.worker.ts',
    },
    output: {
        filename: '[name].worker.js',
        clean: true,
        path: path.resolve(
            projectRootPath,
            'dist/workers'
        ),
    },
    mode: 'production',
    cache: {
        type: 'filesystem',
        cacheDirectory: path.resolve(
            projectRootPath,
            'test_tmp',
            'webpack-cache'
        ),
    },
    devtool: 'source-map',
    module: {
        rules: [
            /**
             * We transpile the typscript via babel instead of ts-loader.
             * This ensures we have the exact same babel config
             * as the root RxDB project.
             */
            {
                test: /\.tsx?$/,
                exclude: /(node_modules)/,<commit_msg>FIX dexie workers are missing in the build output<commit_after>const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');

const projectRootPath = path.resolve(
    __dirname,
    '../../../../'
);

const babelConfig = require('../../../../babel.config');
module.exports = {
    entry: {
        'lokijs-incremental-indexeddb': './src/plugins/worker/workers/lokijs-incremental-indexeddb.worker.ts',
        'lokijs-indexeddb': './src/plugins/worker/workers/lokijs-indexeddb.worker.ts',
        'lokijs-memory': './src/plugins/worker/workers/lokijs-memory.worker.ts',
        'lokijs-fs': './src/plugins/worker/workers/lokijs-fs.worker.ts',
        'pouchdb-idb': './src/plugins/worker/workers/pouchdb-idb.worker.ts',
        'pouchdb-memory': './src/plugins/worker/workers/pouchdb-memory.worker.ts',
        'dexie': './src/plugins/worker/workers/dexie.worker.ts',
        'dexie-memory': './src/plugins/worker/workers/dexie-memory.worker.ts'
    },
    output: {
        filename: '[name].worker.js',
        clean: true,
        path: path.resolve(
            projectRootPath,
            'dist/workers'
        ),
    },
    mode: 'production',
    cache: {
        type: 'filesystem',
        cacheDirectory: path.resolve(
            projectRootPath,
            'test_tmp',
            'webpack-cache'
        ),
    },
    devtool: 'source-map',
    module: {
        rules: [
            /**
             * We transpile the typscript via babel instead of ts-loader.
             * This ensures we have the exact same babel config
             * as the root RxDB project.
             */
            {
                test: /\.tsx?$/,
                exclude: /(node_modules)/,
{'fraction_non_alphanumeric': 0.1588035769349368, 'fraction_numerical': 0.0, 'mean_word_length': 1.9042076991942705, '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': '3621683', 'n_tokens_mistral': 1019, 'n_tokens_neox': 1003, 'n_words': 165}