3 ms·
I actually don't see why someone couldn't write a PHP style autoloader for JS, there is already a lot of cool hacks around require. I think a simple autoloader
by Can_Not 7y ago
I actually don't see why someone couldn't write a PHP style autoloader for JS, there is already a lot of cool hacks around require. I think a simple autoloader would just do something like (almost pseudocode):
find src/**/*.{js,ts} -exec cat {} | typescript >> build.js