Skip to content

Conversation

@lforst
Copy link

@lforst lforst commented Apr 28, 2023

Extracts the release injection logic into individual bundler-specific plugins.

Why?

Release injection messes with module/bundle code and is quite finnicky to get working with all bundlers. Unplugin doesn't seem to help in a lot of cases and even introduces additional bugs with source maps.

Cool side fact: With this change we will always be injecting at the top of modules/bundles, meaning the release value will always be available. This has not been the case for the Sentry webpack plugin so far.

Base automatically changed from lforst-new-options-type to main April 28, 2023 11:27
@lforst lforst mentioned this pull request Apr 28, 2023
@lforst lforst force-pushed the lforst-extract-release-injection branch from c04eb3e to 5388844 Compare April 28, 2023 12:16
@lforst lforst marked this pull request as ready for review April 30, 2023 17:29
@lforst lforst marked this pull request as draft May 2, 2023 12:10
@lforst lforst marked this pull request as ready for review May 2, 2023 14:21
@lforst lforst requested review from AbhiPrasad and mydea May 2, 2023 14:21
@lforst
Copy link
Author

lforst commented May 2, 2023

This is unfortunately a bigger one :(

@lforst lforst requested a review from Lms24 May 2, 2023 14:24
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the end its always dependency injection

@lforst lforst merged commit d868960 into main May 2, 2023
@lforst lforst deleted the lforst-extract-release-injection branch May 2, 2023 15:14
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.

3 participants