Skip to content

Commit

Permalink
fix webpack4
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk committed Mar 19, 2024
1 parent f32653e commit 1140d82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Expand Up @@ -45,8 +45,9 @@ class Dotenv {
target,
version
})
const DefinePlugin = (compiler.webpack && compiler.webpack.DefinePlugin) || require('webpack').DefinePlugin

new compiler.webpack.DefinePlugin(data).apply(compiler)
new DefinePlugin(data).apply(compiler)
}

gatherVariables () {
Expand Down

0 comments on commit 1140d82

Please sign in to comment.