79442774

Date: 2025-02-16 08:09:51
Score: 0.5
Natty:
Report link

I would suggest another solution, for the case you are writing or generating the required module.

In the required module, put the variables to be exported in the global object, instead of the exports:

const func1 = () = {console.log('func1');
const pi2 = 3.14;

global.func1 = func1;
global.pi2 = pi2;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: alex