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

fix(babel): presetEnv need allow null value #1176

Merged
merged 2 commits into from
Jan 5, 2024
Merged

Conversation

zllkjc
Copy link
Member

@zllkjc zllkjc commented Jan 4, 2024

Summary

in @rsbuild/babel-preset base, it seems we can pass in null value.

if (presetEnv) {
   // some code
}

but actually not, if we use the web preset.

Related Links

Checklist

  • Tests updated.
  • Documentation updated.

Copy link

netlify bot commented Jan 4, 2024

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 7a5eb25
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/6596f517bb7db00008b64f4c
😎 Deploy Preview https://deploy-preview-1176--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@chenjiahan chenjiahan merged commit 2dd7d5e into main Jan 5, 2024
13 checks passed
@chenjiahan chenjiahan deleted the fix/bable-preset-env branch January 5, 2024 02:18
@chenjiahan
Copy link
Member

Nice catch 😄

@9aoy 9aoy mentioned this pull request Jan 5, 2024
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.

2 participants