void-packages/srcpkgs/element-desktop/patches/element-web_0001-remove-dependency-on-sentry.patch
2022-06-10 20:14:08 +01:00

51 lines
1.8 KiB
Diff

From a38eae15bfa5fd31927fe7d26191ebf8b56e04ee Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Sat, 11 Dec 2021 21:22:44 +0100
Subject: [PATCH] remove dependency on sentry
This is unused and breaks ppc64 because it downlaods binaries.
---
package.json | 1 -
webpack.config.js | 7 -------
2 files changed, 8 deletions(-)
diff --git a/package.json b/package.json
index 021368599..4587b29fb 100644
--- a/package.json
+++ b/package.json
@@ -84,7 +84,6 @@
"@babel/register": "^7.12.10",
"@babel/runtime": "^7.12.5",
"@principalstudio/html-webpack-inject-preload": "^1.2.7",
- "@sentry/webpack-plugin": "^1.18.1",
"@svgr/webpack": "^5.5.0",
"@types/flux": "^3.1.9",
"@types/jest": "^27.0.2",
diff --git a/webpack.config.js b/webpack.config.js
index 13e969eca..0cd036a7e 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -8,7 +8,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const HtmlWebpackInjectPreload = require('@principalstudio/html-webpack-inject-preload');
-const SentryCliPlugin = require("@sentry/webpack-plugin");
dotenv.config();
let ogImageUrl = process.env.RIOT_OG_IMAGE_URL;
@@ -631,12 +630,6 @@ module.exports = (env, argv) => {
files: [{ match: /.*Inter.*\.woff2$/ }],
}),
- // upload to sentry if sentry env is present
- process.env.SENTRY_DSN &&
- new SentryCliPlugin({
- release: process.env.VERSION,
- include: "./webapp/bundles",
- }),
new webpack.EnvironmentPlugin(['VERSION']),
].filter(Boolean),
--
2.36.0