babel-plugin-transform-dirname-filename
babel-plugin-transform-dirname-filename copied to clipboard
Replace assignment expression with declaration
What does this fix exactly?
Then used with bundler, __dirname
leaked to global.
Yes, without this, the same global __filename
is overwritten for each file.