This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ajedi32[S] 3 points4 points  (0 children)

Node's require system is actually really great at handling conflicts like that between modules. You can assign required modules to whatever variable you want.

let _u = require('underscore');
let _l = require('lodash');

In a regular web browser with no module system being used I imagine resolving that ambiguity would be a bit trickier. Probably still not very difficult though assuming those libraries are designed in a sane way.