Skip to content

Commit

Permalink
feat: supporting webpack 5 (#261)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Nothing really breaking but there is a definite limitation

Co-authored-by: Matt Steele <hello@mrsteele.dev>
  • Loading branch information
2 people authored and tobias-trozowski committed Nov 12, 2020
1 parent 1d3ca5d commit 64c4c88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ By allowing you to define exactly where you are loading environment variables fr

Add `.env` to your `.gitignore` file

### Limitations

Due to the fact that we use `webpack.DefinePlugin` under the hood, we cannot support destructing as that breaks how this plugin is meant to be used. Because of this, please reference your variables in their without destructing. For more information about this, please review the issue here: https://github.com/mrsteele/dotenv-webpack/issues/70.

### Properties

Use the following properties to configure your instance.
Expand Down
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"
"webpack": "^1 || ^2 || ^3 || ^4 || ^5"
},
"dependencies": {
"dotenv-defaults": "^2.0.1"
Expand Down

0 comments on commit 64c4c88

Please sign in to comment.