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

For the libraries that do not conform to CJS or AMD, most loaders support a "shim" configuration:

* http://requirejs.org/docs/api.html#config-shim

To load a library that uses Node/CJS modules:

* https://github.com/requirejs/cajon#why

  - or -
* https://github.com/linkedin/inject#writing-commonjs-complian...


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: