Skip to content

Commit

Permalink
fix: resolving major bug
Browse files Browse the repository at this point in the history
BREAKING CHANGE: dropping support for webpack 5
  • Loading branch information
Matt Steele authored and tobias-trozowski committed Nov 12, 2020
1 parent dbcf1d7 commit 4946825
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"homepage": "https://github.com/mrsteele/dotenv-webpack#readme",
"peerDependencies": {
"webpack": "^1 || ^2 || ^3 || ^4 || ^5"
"webpack": "^1 || ^2 || ^3 || ^4"
},
"dependencies": {
"dotenv-defaults": "^2.0.1"
Expand Down
4 changes: 0 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,6 @@ class Dotenv {
return obj
}, {})

// supporting webpack 5
formatted.process = '{"env": {}}'
formatted['process.env'] = '{}'

return formatted
}

Expand Down
2 changes: 0 additions & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ const buildExpectation = (obj) => {
return all
}, {})

raw.process = '{"env": {}}'
raw['process.env'] = '{}'
return raw
}

Expand Down

0 comments on commit 4946825

Please sign in to comment.