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

ref(core): Extract release injection into separate plugins #218

Merged
merged 17 commits into from May 2, 2023

Conversation

lforst
Copy link
Member

@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 mydea and AbhiPrasad May 2, 2023 14:21
@lforst
Copy link
Member 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
16 checks passed
@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.

None yet

2 participants