Upload server sourcemaps

This commit is contained in:
Jade Ellis 2024-08-25 02:46:26 +01:00
parent f39d357a32
commit 2b59fa45a1
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
3 changed files with 53 additions and 2 deletions

View file

@ -16,6 +16,7 @@
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/pluginutils": "^5.1.0",
"@sentry/rollup-plugin": "^2.22.2",
"@sveltejs/adapter-auto": "^3.2.2",
"@sveltejs/adapter-node": "^5.1.1",
"@sveltejs/kit": "^2.5.16",

View file

@ -2,14 +2,22 @@
import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import json from "@rollup/plugin-json";
import { sentryRollupPlugin } from "@sentry/rollup-plugin";
export default {
input: 'build/index.js',
output: {
dir: "output",
format: 'esm'
format: 'esm',
sourcemap: true,
},
// external: id => id.startsWith("@resvg/resvg-js-"),
external: ["@resvg/resvg-js"],
plugins: [nodeResolve(), json(), commonjs()]
plugins: [
nodeResolve(), json(), commonjs(),
sentryRollupPlugin({
org: "jade-ellis",
project: "jade-website-sveltekit",
}),
]
};

42
pnpm-lock.yaml generated
View file

@ -195,6 +195,9 @@ importers:
'@rollup/pluginutils':
specifier: ^5.1.0
version: 5.1.0(rollup@4.18.0)
'@sentry/rollup-plugin':
specifier: ^2.22.2
version: 2.22.2(rollup@4.18.0)
'@sveltejs/adapter-auto':
specifier: ^3.2.2
version: 3.2.2(@sveltejs/kit@2.5.16(@sveltejs/vite-plugin-svelte@3.1.1(svelte@4.2.18)(vite@5.3.1(@types/node@20.14.2)(terser@5.31.1)))(svelte@4.2.18)(vite@5.3.1(@types/node@20.14.2)(terser@5.31.1)))
@ -1361,6 +1364,10 @@ packages:
resolution: {integrity: sha512-UzH+NNhgnOo6UFku3C4TEz+pO/yDcIA5FKTJvLbJ7lQwAjsqLs3DZWm4cCA08skICb8mULArF6S/dn5/butVCA==}
engines: {node: '>= 14'}
'@sentry/babel-plugin-component-annotate@2.22.2':
resolution: {integrity: sha512-6kFAHGcs0npIC4HTt4ULs8uOfEucvMI7VW4hoyk17jhRaW8CbxzxfWCfIeRbDkE8pYwnARaq83tu025Hrk2zgA==}
engines: {node: '>= 14'}
'@sentry/browser@8.26.0':
resolution: {integrity: sha512-e5s6eKlwLZWzTwQcBwqyAGZMMuQROW9Z677VzwkSyREWAIkKjfH2VBxHATnNGc0IVkNHjD7iH3ixo3C0rLKM3w==}
engines: {node: '>=14.18'}
@ -1369,6 +1376,10 @@ packages:
resolution: {integrity: sha512-/xXN8o7565WMsewBnQFfjm0E5wqhYsegg++HJ5RjrY/cTM4qcd/ven44GEMxqGFJitZizvkk3NHszaHylzcRUw==}
engines: {node: '>= 14'}
'@sentry/bundler-plugin-core@2.22.2':
resolution: {integrity: sha512-TwEEW4FeEJ5Mamp4fGnktfVjzN77KAW0xFQsEPuxZtOAPG17zX/PGvdyRX/TE1jkZWhTzqUDIdgzqlNLjyEnUw==}
engines: {node: '>= 14'}
'@sentry/cli-darwin@2.33.1':
resolution: {integrity: sha512-+4/VIx/E1L2hChj5nGf5MHyEPHUNHJ/HoG5RY+B+vyEutGily1c1+DM2bum7RbD0xs6wKLIyup5F02guzSzG8A==}
engines: {node: '>=10'}
@ -1433,6 +1444,12 @@ packages:
'@opentelemetry/sdk-trace-base': ^1.25.1
'@opentelemetry/semantic-conventions': ^1.25.1
'@sentry/rollup-plugin@2.22.2':
resolution: {integrity: sha512-tt1FPOBO5DkMhu2djQnrmB4Njvn6CBzmkA7RgbVOs1wDWEuQZOeq1xTwVscfa/ma5X9LQ+YRyDkyXLavZKi3qQ==}
engines: {node: '>= 14'}
peerDependencies:
rollup: '>=3.2.0'
'@sentry/svelte@8.26.0':
resolution: {integrity: sha512-oI2tAkqqzix6rypl6b1G2/5YGMh4j83jTybYQdnvW5tbdWW9TLzNTXH77Z9/oIlGaoezG4cmE1z0o+jhjrKQ/A==}
engines: {node: '>=14.18'}
@ -4646,6 +4663,8 @@ snapshots:
'@sentry/babel-plugin-component-annotate@2.22.0': {}
'@sentry/babel-plugin-component-annotate@2.22.2': {}
'@sentry/browser@8.26.0':
dependencies:
'@sentry-internal/browser-utils': 8.26.0
@ -4670,6 +4689,20 @@ snapshots:
- encoding
- supports-color
'@sentry/bundler-plugin-core@2.22.2':
dependencies:
'@babel/core': 7.25.2
'@sentry/babel-plugin-component-annotate': 2.22.2
'@sentry/cli': 2.33.1
dotenv: 16.4.5
find-up: 5.0.0
glob: 9.3.5
magic-string: 0.30.8
unplugin: 1.0.1
transitivePeerDependencies:
- encoding
- supports-color
'@sentry/cli-darwin@2.33.1':
optional: true
@ -4762,6 +4795,15 @@ snapshots:
'@sentry/types': 8.26.0
'@sentry/utils': 8.26.0
'@sentry/rollup-plugin@2.22.2(rollup@4.18.0)':
dependencies:
'@sentry/bundler-plugin-core': 2.22.2
rollup: 4.18.0
unplugin: 1.0.1
transitivePeerDependencies:
- encoding
- supports-color
'@sentry/svelte@8.26.0(svelte@4.2.18)':
dependencies:
'@sentry/browser': 8.26.0