<commit_before>import resolve from '@rollup/plugin-node-resolve';
import { copy } from '@web/rollup-plugin-copy';
import html from '@web/rollup-plugin-html';
import minifyHTML from 'rollup-plugin-minify-html-literals';
import summary from 'rollup-plugin-summary';
import { terser } from 'rollup-plugin-terser';
import { generateSW } from 'rollup-plugin-workbox';

const BUILD_DIRECTORY = 'build/es-bundled';

export default {
  input: 'index.html',
  output: {
    dir: `${BUILD_DIRECTORY}`,
    format: 'es',
  },
  plugins: [
    html({
      extractAssets: false,
    }),
    resolve(),
    minifyHTML(),
    terser({
      ecma: 2020,
      module: true,
      warnings: true,
    }),
    summary(),
    copy({
      patterns: [
        'configuration/**/*',
        'fonts/**/*',
        'images/**/*',
        'node_modules/@webcomponents/**/*',
        'node_modules/@fortawesome/fontawesome-free/**/*',
        'environment',
        'LICENSE',
        'manifest.json',
        'package.json',
        'robots.txt',
      ],
    }),
    generateSW({
      swDest: `${BUILD_DIRECTORY}/service-worker.js`,
      globDirectory: `${BUILD_DIRECTORY}`,
    }),
  ],<commit_msg>Add 'polyfill-support.js' to Rollup config<commit_after>import resolve from '@rollup/plugin-node-resolve';
import { copy } from '@web/rollup-plugin-copy';
import html from '@web/rollup-plugin-html';
import minifyHTML from 'rollup-plugin-minify-html-literals';
import summary from 'rollup-plugin-summary';
import { terser } from 'rollup-plugin-terser';
import { generateSW } from 'rollup-plugin-workbox';

const BUILD_DIRECTORY = 'build/es-bundled';

export default {
  input: 'index.html',
  output: {
    dir: `${BUILD_DIRECTORY}`,
    format: 'es',
  },
  plugins: [
    html({
      extractAssets: false,
    }),
    resolve(),
    minifyHTML(),
    terser({
      ecma: 2020,
      module: true,
      warnings: true,
    }),
    summary(),
    copy({
      patterns: [
        'configuration/**/*',
        'fonts/**/*',
        'images/**/*',
        'node_modules/@webcomponents/**/*',
        'node_modules/@fortawesome/fontawesome-free/**/*',
        'node_modules/lit/polyfill-support.js',
        'environment',
        'LICENSE',
        'manifest.json',
        'package.json',
        'robots.txt',
      ],
    }),
    generateSW({
      swDest: `${BUILD_DIRECTORY}/service-worker.js`,
      globDirectory: `${BUILD_DIRECTORY}`,
    }),
  ],
{'fraction_non_alphanumeric': 0.1728952772073922, 'fraction_numerical': 0.0032854209445585215, 'mean_word_length': 2.6686746987951806, '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': '7102403', 'n_tokens_mistral': 793, 'n_tokens_neox': 786, 'n_words': 147}