-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat(nextjs): Upgrade Sentry Webpack Plugin to 1.18.7 #4635
Conversation
size-limit report
|
Oh hmm maybe we can't do this because we import webpack types in import { WebpackPluginInstance } from 'webpack'; Is there any way we can get rid of the type? If we can't, I guess we have to proceed with #4634 and make it an optional peer dep (but that has it's own problems as illustrated with getsentry/sentry-webpack-plugin#343) |
Yeah, this is a perennial problem, and I've never managed to figure out a good solution. What we need is peer dev dependencies. It's almost like we'd need to have We can't possibly be the first people to have this problem. Unfortunately, googling to see how/if it's been solved elsewhere just gets me a million articles on the difference between peer deps and dev deps... All in all I honestly don't know what the best solution is here. @kamilogorek, do you have any thoughts about this? |
Yep
I haven't tested myself all possible scenarios, but I've let a comment here: getsentry/sentry-webpack-plugin#354 (comment). My feeling is that without peerDependenciesMeta, there's not so much options. But happy to find one if there is cause it's a bit frustrating. |
Let's release getsentry/sentry-webpack-plugin#356 first and upgrade to this version, as it includes important cli changes.
I feel like we already tried it all with no clear winner... Even peerDepMeta wasn't too helpful really - getsentry/sentry-webpack-plugin#354 As for the getsentry/sentry-webpack-plugin#354 (comment) there will always be a tradeoffs, and every option we choose, there will be people that needs it reverted, as you said, ping-ping. |
Ok let's roll with @belgattitude change's in #4634 for now - especially since the peer dep is already there. If more people come back with issues, we can re-visit this topic in more detail |
This upgrades
@sentry/webpack-plugin
to https://github.com/getsentry/sentry-webpack-plugin/releases/tag/v1.18.7This includes the changes from getsentry/sentry-webpack-plugin#354, which means we can get rid of the webpack peer dep from the NextJS package.
fixes #4632
supercedes #4634
ref #4576