magic-globals
magic-globals copied to clipboard
Given this file, foo.js: ``` require('magic-globals'); console.log(`${__file}:${__line}: This works`); console.log(`${__fili}: this doesn't`); ``` Running it results in the following error: ``` % node foo.js foo:2: This works /tmp/node_modules/magic-globals/magic-globals.js:62 if (...
no compatible typescript :(
I'm getting the following error if magic-globals is require'd from multiple dependencies: **TypeError: Cannot redefine property: __stack** To avoid this error, I added a check in magic-globals if properties are...
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...