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

feat(webpack): Gate forced process exit behind experimental flag #663

Merged
merged 3 commits into from
Jan 24, 2025

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