3 ms·
I wrote a generic loader that’s compatible with old school scripts, amd, node, and es imports that does just that. It’s zero config and would be fully automated
by ComputerGuru 5y ago
I wrote a generic loader that’s compatible with old school scripts, amd, node, and es imports that does just that. It’s zero config and would be fully automated except given a local npm/yarn env, I just need some way of going from “fookpg” in “import foo from foopkg” to node_modules/foopkg/entrypoint.JS
How can you resolve a module name to its path without external dependencies?