diff --git a/extension.zip b/extension.zip index 15cb0ecb..cde8515a 100644 Binary files a/extension.zip and b/extension.zip differ diff --git a/package.json b/package.json index f4a9a4bf..56a4fb9f 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,19 @@ "description": "BetterSEQTA+ is a browser extension that adds features to SEQTA.", "scripts": { "dev": "parcel watch manifest.json --host localhost --config @parcel/config-webextension --no-hmr --no-content-hash", - "build": "parcel build manifest.json --config @parcel/config-webextension --no-content-hash --no-cache", + "build": "parcel build manifest.json --config @parcel/config-webextension --no-content-hash --no-cache --no-source-maps", "dev-firefox": "parcel watch firefox/manifest.json --host localhost --config @parcel/config-webextension --no-hmr --no-content-hash", "build-firefox": "parcel build firefox/manifest.json --config @parcel/config-webextension --no-content-hash --no-cache", "eslint": "eslint --fix .", "package": "7z a -tzip extension.zip ./dist/*" }, + "targets": { + "prod": { + "sourceMap": { + "inline": false + } + } + }, "keywords": [], "author": "", "license": "MIT", diff --git a/src/SEQTA.ts b/src/SEQTA.ts index 165b53f3..d6fcd692 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -1,4 +1,4 @@ -import * as Sentry from "@sentry/browser" +import * as Sentry from "@sentry/browser"; import { animate, spring, stagger } from 'motion' import loading, { AppendLoadingSymbol } from './seqta/ui/Loading' @@ -24,7 +24,7 @@ import browser from 'webextension-polyfill' import coursesicon from './seqta/icons/coursesIcon' import { delay } from "./seqta/utils/delay" import { enableCurrentTheme } from './seqta/ui/Themes' -import iframeCSS from "bundle-text:./css/iframe.scss" +import * as iframeCSS from "bundle-text:./css/iframe.scss" import { onError } from './seqta/utils/onError' import stringToHTML from './seqta/utils/stringToHTML' import { updateAllColors } from './seqta/ui/colors/Manager' @@ -742,11 +742,7 @@ function main(storedSetting: SettingsState) { Sentry.init({ dsn: "https://54bdb68e80b45182ded22ecf9fe9529c@o4506347383291904.ingest.sentry.io/4506347462393856", integrations: [ - new Sentry.BrowserTracing({ - // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled - tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/], - }), - new Sentry.Replay(), + Sentry.replayIntegration(), ], // Performance Monitoring tracesSampleRate: 1.0, // Capture 100% of the transactions