My webpack configuration has this piece of code.
plugins: [
new webpack.DefinePlugin({
CONFIG: {
API_URL: process.env.API_URL,
},
}),
]
When i try to access CONFIG in my script i get the above error.
(function(){
console.log(CONFIG);
}());
@akprgm , @Code2Life , suppose you have definition like
process.env.API_URL === "http://abc.com"
, you shouldOr you will get code like
Which is surely wrong.