GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — fix: preserve empty process environment variables in DotenvPlugin by shuaiyafei · Pull Request #22785 · webpack/webpack Conversation
|
| Source expression | Before | After |
|---|---|---|
process.env.WEBPACK_DOTENV_EMPTY_PROCESS_ONLY |
undefined |
"" |
import.meta.env.WEBPACK_DOTENV_EMPTY_PROCESS_ONLY |
undefined |
"" |
What kind of change does this PR introduce?
fix
Did you add tests for your changes?
Yes. test/configCases/plugins/dotenv-empty-process-env covers empty variables, file overrides, and nonempty values with file loading enabled and disabled.
All 48 dotenv tests pass across ConfigTestCases and ConfigCacheTestCases. The regression fails in both suites before the fix.
yarn lint passes, including generated files, types, formatting, and spellcheck.
Does this PR introduce a breaking change?
No.
If relevant, what needs to be documented once your changes are merged or what have you already documented?
n/a
Use of AI
Codex helped reproduce the bug, prepare the patch and regression tests, and run the checks.
.env files. Nonempty process values continue to take precedence.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
🦋 Changeset detectedLatest commit: b91f4da The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Change: Bug fix Merge Risk: ⚪ Minimal · up to
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.