Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the rsbuild plugin be supported? #607

Open
mengbo-ji opened this issue Sep 18, 2024 · 5 comments
Open

Can the rsbuild plugin be supported? #607

mengbo-ji opened this issue Sep 18, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@mengbo-ji
Copy link

mengbo-ji commented Sep 18, 2024

Hi, I'm using rsbuild

but my project uses the sentry monitoring system, I hope you can support rsbuildPlugin!

Image

@AbhiPrasad
Copy link
Member

cc @smeubank

https://www.npmjs.com/package/@rsbuild/core

Image

there is pretty solid adoption, so I think we should start considering it. Maybe when it gets above 100k weekly downloads?

@AbhiPrasad AbhiPrasad added the enhancement New feature or request label Sep 18, 2024
@AbhiPrasad
Copy link
Member

@mengbo-ji for now you can use tools.rspack (https://rsbuild.dev/zh/config/tools/rspack#toolsrspack) and add the sentry webpack plugin: https://www.npmjs.com/package/@sentry/webpack-plugin

@eliliam
Copy link

eliliam commented Nov 7, 2024

@mengbo-ji or @AbhiPrasad, could you provide an example of how to properly configure this as @AbhiPrasad described? I'm having a difficult time figuring that part out.

@lforst
Copy link
Member

lforst commented Nov 8, 2024

I haven't tried it myself tbh but I'd assume that you would just have to add the webpack plugin here: https://rspack.dev/guide/migration/webpack#community-plugins

What exactly isn't working?

@ephill
Copy link

ephill commented Nov 14, 2024

Can confirm that adding the Sentry webpack plugin to tools.rspack works just fine:

  tools: {
    rspack: (config, { appendPlugins }) => {
...
          appendPlugins([
            sentryWebpackPlugin({
              authToken: process.env.SENTRY_AUTH_TOKEN,
              org: 'foo',
              project: 'bar'
            })
          ]);
...
      return config;
    }

in my Rsbuild config worked without issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

6 participants