magic-globals icon indicating copy to clipboard operation
magic-globals copied to clipboard

Wrong line number when using babel

Open InsiderTI opened this issue 6 years ago • 0 comments

Hi!

I have tried to use "__line" but it displays the wrong line number on babel using es2015. The following code: import restify from 'restify'; import fs from 'fs'; import path from 'path'; import rtrim from 'rtrim'; import magicglobals from 'magic-globals'; console.log(__line);

displays: 25

InsiderTI avatar Mar 04 '18 01:03 InsiderTI