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

refactor: rewrite tests to use webpack compiler, drop node 8 #360

Merged
merged 25 commits into from
Mar 5, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: use better replacement
  • Loading branch information
beeequeue committed Mar 4, 2021
commit f57f1e290ec555b04f8312e984ba3d2c7dfc9502
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ class Dotenv {
// However, if someone targets Node or Electron `process.env` still exists, and should therefore be kept
// https://webpack.js.org/configuration/target
if (!target.startsWith('node') && !target.startsWith('electron')) {
beeequeue marked this conversation as resolved.
Show resolved Hide resolved
// fix in case of missing
formatted['process.env'] = '{}'
// Results in `"MISSING_ENV_VAR".NAME` which is valid JS
formatted['process.env'] = '"MISSING_ENV_VAR"'
beeequeue marked this conversation as resolved.
Show resolved Hide resolved
}

return formatted
Expand Down