Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not sure how a reusable module that depends on jquery could make these assumptions about where the server-wide JS directory is.

../package-name/ works with multiple apps on the same server, and mounted in other places than root. It's working quite well for us with HTML imports.



I'd rather have each module have its own dependencies as subdirectories, sort of like node_modules. Everyone resolves paths from cwd.

If someone wants to share the same jquery across subdirs, I'm sure http redirects could be configured. Or alternately some sort of corporate versioning convention that developers can expect to have with absolute paths. Certainly better than ../jquery.


Every Angular or React component or every lodash dependent carrying along it's own copy of the modules sounds entirely unworkable.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: