Angular 2 CLI moves from SystemJS to Webpack

Angular 2 CLI moves from SystemJS to Webpack

The Modern JavaScript ecosystem has reached the point of maturity where some projects are becoming the de-facto standard. Build system veterans such as Grunt and Gulp were first challenged by Browserify to packaging files for distribution, but now WebPack is the norm. The Angular 2 CLI curiously used the SystemJS for loading modules.

Angular 2 CLI is an official project from the Angular 2 development team. It aims to help developers waste less time in setting up a project before getting stated. This standard scaffolding used a tool call SystemJS, which is “a universal dynamic module loader” capable of loading different JavaScript formats (ES6, AMD, CommonJS).

Edging towards the 1.0 release, the Angular 2 CLI team announced a move to Webpack over SystemJS for loading JavaScript. Work still continues, but this is another move towards a more unified JavaScript ecosystem. The recently released React project scaffolding tool, influenced by the Ember CLI tool also uses Webpack.

Just like the NPM package manager for the Node.js server environment is now the default for all JavaScript Packaging, it looks like Webpack is cementing its position as the de-facto module packaging tool. All of this means that in your Decoupled CMS projects, for example, you can spend more time on productive work rather than setting up or learning new tooling.

The transition from SystemJS to Webpack is still work in progress, but the team is looking to make the change as simple as possible:

We want to make sure it’s ready. That’s why we need your help. Basically, things should work. Build and Serve should work. Also, testing and E2E should too. To put it short, everything should work as it was before. But we’re not certain! Test every commands you can think of. Use your normal work flows. We need you to test your projects and file issues about it.

Developers already using Angular 2 CLI should take a look at the migration pull request. In any case if you’re looking to start new Angular 2 projects using the CLI you should probably already start using the Webpack powered beta as that will spare you from migration in the future



0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

©2024 Luke Angel

Log in with your credentials

Forgot your details?

%d bloggers like this: