Skip to content

ref(core): Switch to v2 options#237

Merged
lforst merged 11 commits into
mainfrom
lforst-new-options
May 8, 2023
Merged

ref(core): Switch to v2 options#237
lforst merged 11 commits into
mainfrom
lforst-new-options

Conversation

@lforst
Copy link
Copy Markdown

@lforst lforst commented May 5, 2023

@lforst lforst force-pushed the lforst-new-options branch from 80dd6c7 to ba9a81d Compare May 5, 2023 12:14
@lforst lforst requested review from AbhiPrasad, Lms24 and mydea May 8, 2023 08:01
Copy link
Copy Markdown
Contributor

@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.

Nice!

Copy link
Copy Markdown
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Looks good to me! Just had some minor comments but nothing blocking.

Comment on lines +169 to +178
if (options.sourcemaps) {
if (!options.authToken) {
logger.warn("No auth token provided. Will not upload source maps.");
} else if (!options.org) {
logger.warn("No org provided. Will not upload source maps.");
} else if (!options.project) {
logger.warn("No project provided. Will not upload source maps.");
} else if (!options.sourcemaps.assets) {
logger.warn("No assets defined. Will not upload source maps.");
} else {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

l: Personally I'd prefer to extract this validation to a function (per plugin) to declutter this one a little but feel free to leave it as is as.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This currently has a use for TS. We could put it into a helper but I am not sure if it will actually simplify the code by a lot. Gonna leave this for now.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ahh I see, yeah, then let's just leave it.

Comment thread packages/bundler-plugin-core/src/index.ts
hub.setTag("add-deploy", true);
}

// Miscelaneous options
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

super-l: Should we add a tag for the new deleteAfterUpload option? Might be interesting to see how often it is used?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

We don't have it implemented yet but it probably doesn't hurt to add right now!

Comment thread packages/bundler-plugin-core/src/types.ts
Luca Forstner and others added 2 commits May 8, 2023 13:55
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
@lforst lforst changed the title ref(core): Switch to updated options ref(core): Switch to v2 options May 8, 2023
@lforst lforst enabled auto-merge (squash) May 8, 2023 11:57
@lforst lforst mentioned this pull request May 8, 2023
@lforst lforst merged commit d1c6972 into main May 8, 2023
@lforst lforst deleted the lforst-new-options branch May 8, 2023 13:57
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