You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I might be missing a point, but I hope you could clarify me. Would there be any issues with exporting di as CommonJS module so it can naturally be used in node with simple require('di-lite'); ?
I've added an index.js file requiring './di-lite' and added a simple export ceremony like:
if(module&&module.exports){module.exports=di;}
for testing and it seems to be working. Is there something am not foreseeing? Would this affect the operation of the library in the browser?
The text was updated successfully, but these errors were encountered:
I might be missing a point, but I hope you could clarify me. Would there be any issues with exporting di as CommonJS module so it can naturally be used in node with simple
require('di-lite');
?I've added an index.js file requiring './di-lite' and added a simple export ceremony like:
for testing and it seems to be working. Is there something am not foreseeing? Would this affect the operation of the library in the browser?
The text was updated successfully, but these errors were encountered: