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

chore: remove define plugin in rspack-cli #6219

Merged
merged 2 commits into from May 15, 2024
Merged

Conversation

LingyuCoder
Copy link
Collaborator

@LingyuCoder LingyuCoder commented Apr 12, 2024

Summary

Fix #6214

  • Use optimization.nodeEnv to add DefinePlugin of process.env.NODE_ENV.
  • optimization.nodeEnv should be affected by mode.
  • --mode in rspack-cli should only affect mode and do not affect DefinePlugin directly.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copy link

netlify bot commented Apr 12, 2024

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit 6cc1b48
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/6644632b05343c000a279eb0
😎 Deploy Preview https://deploy-preview-6219--rspack.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.

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Apr 12, 2024
@9aoy 9aoy mentioned this pull request May 14, 2024
@LingyuCoder LingyuCoder requested a review from hardfist May 15, 2024 07:27
@LingyuCoder LingyuCoder marked this pull request as ready for review May 15, 2024 07:27
@LingyuCoder LingyuCoder merged commit 2456d69 into main May 15, 2024
36 checks passed
@LingyuCoder LingyuCoder deleted the chore/remove-cli-define branch May 15, 2024 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Disabling optimizations.nodeEnv does nothing
2 participants