Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ const SentryCli = require('@sentry/cli');
const path = require('path');
const util = require('util');
const { RawSource } = require('webpack-sources');
const pjson = require('../package.json');

const SENTRY_LOADER = path.resolve(__dirname, 'sentry.loader.js');
const SENTRY_MODULE = path.resolve(__dirname, 'sentry-webpack.module.js');

// Set the User-Agent string.
process.env.SENTRY_PIPELINE = `webpack-plugin/${pjson.version}`;

/**
* Helper function that ensures an object key is defined. This mutates target!
*
Expand Down