babel-plugin-transform-dirname-filename icon indicating copy to clipboard operation
babel-plugin-transform-dirname-filename copied to clipboard

Replace assignment expression with declaration

Open pavelrevers opened this issue 7 years ago • 3 comments

pavelrevers avatar Sep 26 '17 16:09 pavelrevers

What does this fix exactly?

TooTallNate avatar Sep 26 '17 16:09 TooTallNate

Then used with bundler, __dirname leaked to global.

pavelrevers avatar Sep 28 '17 09:09 pavelrevers

Yes, without this, the same global __filename is overwritten for each file.

floriancargoet avatar May 28 '19 12:05 floriancargoet