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

Or better yet, use jspm with Babel and use ES6 modules for everything.

https://github.com/jspm/jspm-cli

https://github.com/systemjs/systemjs



What's the benefit of jspm vs webpack (which is incredibly powerful, but sloppy IMHO right now).


I honestly haven't used webpack much myself, but I found these two threads on the topic:

https://github.com/jspm/jspm-cli/issues/335

https://github.com/jspm/jspm-cli/issues/844

According to those, SystemJS (jspm's module loader) has the following advantages:

- Able to load any type of module as any other type of module (global, CommonJS, AMD, ES6)

- Can handle transpilation and module loading at runtime without requiring a manual build step

However, jspm itself is primarily a package manager. Its main advantages over existing package management solutions are:

- The tight integration with the SystemJS module loader for ES6 usage

- The fact that it maintains a flat dependency hierarchy with deduplication

- The ability to override package.json configuration for any dependency

- Allows loading of packages from just about any source (local git repos, Github, NPM) as any module format




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: