Skip to content

Commit

Permalink
fix: resolving version issue when missing in v4
Browse files Browse the repository at this point in the history
  • Loading branch information
ChromeQ committed Mar 16, 2021
1 parent 889ce8a commit 25bde29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -38,7 +38,7 @@ class Dotenv {
apply (compiler) {
const variables = this.gatherVariables()
const target = compiler.options.target ?? 'web'
const version = compiler.webpack.version
const version = (compiler.webpack && compiler.webpack.version) || '4'
const data = this.formatData({
variables,
target,
Expand Down

0 comments on commit 25bde29

Please sign in to comment.