<commit_before>/* eslint-disable @typescript-eslint/no-var-requires */
'use strict';

process.env.EMBROIDER_REBUILD_ADDONS = '@cardstack/boxel';

const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const { Webpack } = require('@embroider/webpack');
const { compatBuild } = require('@embroider/compat');
const svgoUniqueId = require('svgo-unique-id');

module.exports = function (defaults) {
  let app = new EmberApp(defaults, {
    svgJar: {
      strategy: 'inline',
      sourceDirs: ['public'],
      optimizer: {
        svgoModule: require('svgo'),
        plugins: [
          { removeTitle: false },
          { removeDesc: { removeAny: false } },
          { removeViewBox: false },
          {
            cleanupIDs: { minify: false },
          },
          {
            prefixIds: false,
          },
          {
            uniqueID: svgoUniqueId,
          },
        ],
      },
    },
  });

  return compatBuild(app, Webpack, {
    packagerOptions: {
      webpackConfig: {
        output: {
          assetModuleFilename: '[path][name]-[contenthash][ext]',
        },
        module: {
          rules: [
            {
              test: /\.(png|jpg|gif|woff|woff2|eot|ttf|otf|flac)$/i,
              type: 'asset/resource',
            },
            {
              test: /\.svg$/i,
              type: 'asset/resource',
              use: [
                {
                  loader: '@hyperbola/svgo-loader',
                  options: {
                    plugins: [
                      { removeTitle: false },
                      { removeDesc: { removeAny: false } },
                      { removeViewBox: false },
                      {
                        cleanupIDs: { minify: false },
                      },
                      {
                        prefixIds: false,
                      },
                      {
                        uniqueID: svgoUniqueId,
                      },
                    ],
                  },
                },
              ],
            },
          ],
        },
      },
    },
  });
};
<commit_msg>Don't load power select CSS in safe-tools-client<commit_after>/* eslint-disable @typescript-eslint/no-var-requires */
'use strict';

process.env.EMBROIDER_REBUILD_ADDONS = '@cardstack/boxel';

const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const { Webpack } = require('@embroider/webpack');
const { compatBuild } = require('@embroider/compat');
const svgoUniqueId = require('svgo-unique-id');

module.exports = function (defaults) {
  let app = new EmberApp(defaults, {
    'ember-power-select': { theme: false },
    svgJar: {
      strategy: 'inline',
      sourceDirs: ['public'],
      optimizer: {
        svgoModule: require('svgo'),
        plugins: [
          { removeTitle: false },
          { removeDesc: { removeAny: false } },
          { removeViewBox: false },
          {
            cleanupIDs: { minify: false },
          },
          {
            prefixIds: false,
          },
          {
            uniqueID: svgoUniqueId,
          },
        ],
      },
    },
  });

  return compatBuild(app, Webpack, {
    packagerOptions: {
      webpackConfig: {
        output: {
          assetModuleFilename: '[path][name]-[contenthash][ext]',
        },
        module: {
          rules: [
            {
              test: /\.(png|jpg|gif|woff|woff2|eot|ttf|otf|flac)$/i,
              type: 'asset/resource',
            },
            {
              test: /\.svg$/i,
              type: 'asset/resource',
              use: [
                {
                  loader: '@hyperbola/svgo-loader',
                  options: {
                    plugins: [
                      { removeTitle: false },
                      { removeDesc: { removeAny: false } },
                      { removeViewBox: false },
                      {
                        cleanupIDs: { minify: false },
                      },
                      {
                        prefixIds: false,
                      },
                      {
                        uniqueID: svgoUniqueId,
                      },
                    ],
                  },
                },
              ],
            },
          ],
        },
      },
    },
  });
};

{'fraction_non_alphanumeric': 0.13003961780470752, 'fraction_numerical': 0.00046609182008855747, 'mean_word_length': 1.122650840751731, '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': '5991863', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1137, 'n_words': 181}