4 ms·
Or better yet, use jspm with Babel and use ES6 modules for everything. https://github.com/jspm/jspm-cli https://github.com/jspm/jspm-cli https://github.com/sy
by lewisl9029 11y ago
Or better yet, use jspm with Babel and use ES6 modules for everything.
https://github.com/jspm/jspm-cli https://github.com/jspm/jspm-cli
https://github.com/systemjs/systemjs https://github.com/systemjs/systemjs
- zghst 11y agoWhat's the benefit of jspm vs webpack (which is incredibly powerful, but sloppy IMHO right now).
- lewisl9029 11y agoI 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/335 https://github.com/jspm/jspm-cli/issues/844 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