Skip to content

Conversation

@MattieBelt
Copy link
Contributor

@MattieBelt MattieBelt commented Jun 20, 2024

What does it do?

Fix the allowence of falsy (false) build options values.

Why is it needed?

The build option sourcemap: false would not work, as it would fallback to it's initial value: true.

minify: resolveConfigProperty(ctx.config.minify, false),
sourcemap: resolveConfigProperty(ctx.config.sourcemap, true),

Funny enough it would work for minify as the fallback value already was set to false 😉

Related PRs

#13

@changeset-bot
Copy link

changeset-bot bot commented Jun 20, 2024

🦋 Changeset detected

Latest commit: 2fa64ef

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@innerdvations innerdvations left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants