3 ms·
Is that not what a named export of a const declared inside a single JS file does, though? e.g. for node, the first time the file is loaded it is evaluated whic
by ohthatsnotright 4y ago
Is that not what a named export of a const declared inside a single JS file does, though? e.g. for node, the first time the file is loaded it is evaluated which would assign the const, and then the export is given to all files so unless you have a fun circular dependency you should arrive at exactly one instance.