Sentry Webpack Plugin banner
getsentry getsentry

Sentry Webpack Plugin

Git community

Description

Repo moved to https://github.com/getsentry/sentry-javascript-bundler-plugins. Please open any issues/PRs there.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Sentry

Moved!

⚠️ Notice: The repository for the `@sentry/webpack-plugin` package moved to https://github.com/getsentry/sentry-javascript-bundler-plugins.

Please open any issues and PRs over there, as this repository is no longer maintained!

Sentry Webpack Plugin

A webpack plugin acting as an interface to [Sentry CLI](https://docs.sentry.io/learn/cli/).

Installation

`@sentry/webpack-plugin` requires at least `webpack@4.41.31` or any `webpack@5` version to be installed.

Using npm:

$ npm install @sentry/webpack-plugin --save-dev

Using yarn:

$ yarn add @sentry/webpack-plugin --dev

CLI Configuration

You can use either `.sentryclirc` file or ENV variables described here https://docs.sentry.io/cli/configuration.

Usage

const SentryWebpackPlugin = require('@sentry/webpack-plugin');

const config = {
  plugins: [
    new SentryWebpackPlugin({
      include: '.',
      ignoreFile: '.sentrycliignore',
      ignore: ['node_modules', 'webpack.config.js'],
      configFile: 'sentry.properties',
    }),
  ],
};

Also, check the [example](example) directory.

Options

| Option | Type | Required | Description | | ------------------ | ----------------------------------------------------------