Hi there.
I’m using express with webpack.
I found __dirname needs set for node and i set like below
node: {
__dirname: false
}
Docs comment __dirname: true
is real __dirname, but Above works. Not true
(true output ”)
Is Docs correct, or not ?
thanks about greate tool!
@sokra given what you said above re what makes sense, why is webpack unexpectedly breaking node’s behaviour? Shouldn’t the node options all be false automatically if target is node? The mangling of __dirname is counter intuitive and without warning. And in most cases, the output built for node will operate incorrectly rather than failing.