Giter Club home page Giter Club logo

Comments (6)

kenn avatar kenn commented on June 25, 2024 1

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.

lforst avatar lforst commented on June 25, 2024 1

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.

lforst avatar lforst commented on June 25, 2024

There is a silent option which you might be looking for.

from sentry-javascript-bundler-plugins.

kenn avatar kenn commented on June 25, 2024

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.

lforst avatar lforst commented on June 25, 2024

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.

lforst avatar lforst commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.