Comments (6)
Got it. Now my config looks like this. Thanks!
export default defineConfig(({ mode }) => {
return {
build: {
sourcemap: true,
},
plugins: [
remix(),
tsconfigPaths(),
sentryVitePlugin({
org: 'org',
project: 'project',
authToken: process.env.SENTRY_AUTH_TOKEN,
sourcemaps: {
filesToDeleteAfterUpload: ['./build/**/*.js.map'],
},
telemetry: mode === 'production',
// debug: mode === 'production', // to check if filesToDeleteAfterUpload works as expected
silent: mode !== 'production',
errorHandler: (err) => {
console.warn(err)
},
}),
],
}
})
from sentry-javascript-bundler-plugins.
Closing this since I think you solved the problem. Feel free to ping me in case you have any other questions!
from sentry-javascript-bundler-plugins.
There is a silent
option which you might be looking for.
from sentry-javascript-bundler-plugins.
There is a
silent
option which you might be looking for.
Thanks! It says suppress all logs, which sounds a bit too aggressive. Does that still prints important logs such as errors? If so that's what I was looking for!
from sentry-javascript-bundler-plugins.
So if something throws, it should still be shown as part of the Node.js stack trace, but it will silence all logs, including error log messages.
You could use the errorHandler
option to still log in case something errors out.
from sentry-javascript-bundler-plugins.
We do not intend to add some sort of log level option as of now I should add.
from sentry-javascript-bundler-plugins.
Related Issues (20)
- Should inject banner code after `use strict` HOT 1
- Sourcemap upload not working for `.mjs` files HOT 2
- esbuild plugin: You are attempting to use this endpoint too frequently HOT 4
- sentry-webpack-plugin + electron(-forge) breaks universal builds HOT 1
- Webpack plugin causes Typescript build errors when React component annotation is enabled HOT 1
- Add `bundlesizeOptimizations` options to docs
- Source map loaded and connected to release, but still don't see any readable trace HOT 4
- Webpack plugin uploads source maps on development mode HOT 2
- VSC Debugger doesn't stop at breakpoint in TypeScript (ts) file but in Vue file
- Too many source-maps cause rate-limiting from the sentry API HOT 8
- Source Maps aren't mapped when working with docker HOT 5
- vite-plugin uploads sourcemaps when building for development HOT 1
- Sourcemapping broken with vite 5.1.7 and 5.2.10 HOT 9
- Cannot read properties of undefined (reading 'sentry') when using reactComponentAnnotation with @react-three/fiber HOT 2
- `sourcemaps.rewriteSources` doesnโt apply new source value HOT 8
- Upload sourcemaps for multiple environments HOT 7
- `isOlderThan` is not a function HOT 8
- [Help]: Change project release details for uploaded sourcemaps HOT 2
- Dont log warnings when certain features are disabled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-javascript-bundler-plugins.