18F/identity-idp

View on GitHub
app/javascript/packages/address-search/webpack.config.cjs

Summary

Maintainability
Test Coverage
module.exports = /** @type {import('webpack').Configuration} */ ({
  mode: 'production',
  target: ['node'],
  entry: {
    index: './',
  },
  experiments: {
    outputModule: true,
  },
  output: {
    module: true,
    chunkFormat: false,
    filename: '[name].js',
    library: {
      type: 'module',
    },
  },
  resolve: {
    extensions: ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.cjs', '.mts', '.cts'],
    conditionNames: ['source'],
  },
  externals: [/^(?!(@18f\/identity-|\.))/, '@18f/identity-i18n'],
  module: {
    rules: [
      {
        use: {
          loader: 'babel-loader',
        },
      },
    ],
  },
  optimization: {
    minimize: false,
  },
});