Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Jan 24, 2025

In #653 I introduced a forced process exit when the webpack build was done. This turned out to happen too early in NextJS builds. My guess is that there are multiple builds in the same process, meaning that we'd exit when the first one is done. This PR now reverts the default behaviour to no longer exit the process. Instead, users can set an experimental flag to force exiting the process (e.g. for #345):

sentryWebpackPlugin({
  // ...other options
  _experiments: { forceExitOnBuildCompletion: true },
});

Given we received no confirmation that this actually solves #345 so far, I think keeping this experimental for now is the best option.

fixes #662
probably also addresses #653 (comment)

@Lms24 Lms24 self-assigned this Jan 24, 2025
@Lms24 Lms24 requested a review from lforst January 24, 2025 09:17
@Lms24 Lms24 merged commit 587ef78 into main Jan 24, 2025
18 checks passed
@Lms24 Lms24 deleted the lms/feat-gate-webpack-exit-behind-flag branch January 24, 2025 10:03
@lesderid
Copy link

probably also addresses #653 (comment)

It did, thank you!

renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Jan 25, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 3.0.0 | 3.1.0 |


## [v3.1.0](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#310)

-   feat(webpack): Gate forced process exit behind experimental flag ([#663](getsentry/sentry-javascript-bundler-plugins#663))
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Jan 25, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 3.0.0 | 3.1.0 |


## [v3.1.0](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#310)

-   feat(webpack): Gate forced process exit behind experimental flag ([#663](getsentry/sentry-javascript-bundler-plugins#663))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Since 3.0.0, Sentry webpack plugin aborts build processes prematurely, breaking builds

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.