{"id":25044957,"url":"https://github.com/sectorlabs/sentry-source-maps-webpack-plugin","last_synced_at":"2026-03-06T06:32:03.563Z","repository":{"id":40747923,"uuid":"115783328","full_name":"SectorLabs/sentry-source-maps-webpack-plugin","owner":"SectorLabs","description":"Upload source maps to Sentry automatically.","archived":false,"fork":false,"pushed_at":"2022-07-20T01:58:22.000Z","size":125,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-03-30T16:01:48.993Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SectorLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-30T08:12:26.000Z","updated_at":"2020-10-25T15:19:22.000Z","dependencies_parsed_at":"2022-08-19T21:50:46.549Z","dependency_job_id":null,"html_url":"https://github.com/SectorLabs/sentry-source-maps-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SectorLabs%2Fsentry-source-maps-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SectorLabs%2Fsentry-source-maps-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SectorLabs%2Fsentry-source-maps-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SectorLabs%2Fsentry-source-maps-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SectorLabs","download_url":"https://codeload.github.com/SectorLabs/sentry-source-maps-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246395591,"owners_count":20770243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-06T05:20:00.686Z","updated_at":"2025-10-25T05:41:38.193Z","avatar_url":"https://github.com/SectorLabs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sentry Source Maps Webpack Plugin\n\n[![MIT](https://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)\n[![npm version](https://badge.fury.io/js/sentry-source-maps-webpack-plugin.svg)](https://badge.fury.io/js/sentry-source-maps-webpack-plugin)\n\nThis Webpack plugin automatically uploads source maps generated during the build to Sentry.io.\n\n## Why not use the official plugin?\nThe [sentry-webpack-plugin](https://github.com/getsentry/sentry-webpack-plugin) doesn't allow configuration through the Webpack plugin itself or environment variables. \n\nThere are a couple of other reasons to use this plugin over the official one:\n\n* Use the `publicPath` from your Webpack configuration rather than assuming `/`.\n* Override the `publicPath` per file (useful for Node.JS code).\n\n## Installation\n\n1. Install the package from NPM:\n\n        λ yarn add sentry-source-maps-webpack-plugin\n\n2. Follow the instructions for the official plugin regarding getting a authentication token:\n\n    * [Official docs](https://docs.sentry.io/clients/javascript/sourcemaps/#using-sentry-webpack-plugin)\n\n2. Add the plugin to your Webpack configuration:\n\n        const SentrySourceMapsPlugin = require('sentry-source-maps-webpack-plugin');\n\n        const config = {\n            plugins: [\n                new SentrySourceMapsPlugin({\n                    org: 'my-org',\n                    project: 'my-project',\n                    authToken: 'sentry auth token',\n                    version: '1.0',\n\n                    // not required\n                    retries: 5,\n                    timeout: 1000,\n                    publicPaths: {\n                        'server.js': '/',\n                        'server.js.map': '/',\n                    },\n                }),\n            ]\n        };\n\n3. Make sure to specify the exact same version when configuring Raven:\n\n    * [Official docs](https://docs.sentry.io/clients/javascript/sourcemaps/#verify-you-have-specified-the-release-in-your-client-config)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectorlabs%2Fsentry-source-maps-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsectorlabs%2Fsentry-source-maps-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectorlabs%2Fsentry-source-maps-webpack-plugin/lists"}