I wanted to test out path.js in jsfiddle, so I decided to make a 2-3 line jsfiddle script. I included path.min.js as an external resource, but when I try running it, I see errors that the join function is not defined.
This was the error message:
Uncaught ReferenceError: join is not defined
Outside of jsfiddle, normally I would:
var path = require('path');
path.join("a","b");
So I am thinking join("a","b","c");
is not the right usage for this kind of 'import', or maybe just for the path.min.js library in specific.
I've tried both path.js and path.min.js from cdnjs (the latter is what jsfiddle selects when using the search bar in its resources tab), and had the same error with both.