@angular/compiler-cli package (#43431)
All other frameworks packages are now using APF v13 and are strict ESM packages. The compiler-cli does not use APF and is currently shipped with its devmode ES5 CommonJS sources. This is problematic as CommonJS cannot simply import from ECMAScript modules (like `@angular/compiler`). To fix this we use a bundler that allows us to ship the compiler-cli as a strict ESM package. Note: An ESM can import from an ESM without any problems. This is what we need hre. Unfortunatley we need a bundler here because converting the compiler-cli to ESM is non-trivial as relative imports would need an explicit `.js` extension. This work can be simplified by using a bundler that avoids relative imports completely. Note: This commit uses code-splitting to create multiple bundle entry-points for `yarn ngc, `yarn ngcc` etc. This commit removed the old `ivy-ngcc` entry-point that just printed an error message (to reduce amount of bundles having to be configured). PR Close #43431
Angular - The modern web developer's platform.
Angular is a development platform for building mobile and desktop web applications
using Typescript/JavaScript and other languages.
Contributing Guidelines
·
Submit an Issue
·
Blog
Documentation
Get started with Angular, learn the fundamentals and explore advanced topics on our documentation website.
Advanced
Development Setup
Prerequisites
- Install Node.js which includes Node Package Manager
Setting Up a Project
Install the Angular CLI globally:
npm install -g @angular/cli
Create workspace:
ng new [PROJECT NAME]
Run the application:
cd [PROJECT NAME]
ng serve
Angular is cross-platform, fast, scalable, has incredible tooling, and is loved by millions.
Quickstart
Ecosystem
Changelog
Learn about the latest improvements.
Upgrading
Check out our upgrade guide to find out the best way to upgrade your project.
Contributing
Contributing Guidelines
Read through our contributing guidelines to learn about our submission process, coding rules and more.
Want to Help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues labeled as help wanted or good first issue.
Code of Conduct
Help us keep Angular open and inclusive. Please read and follow our Code of Conduct.
Community
Join the conversation and help the community.
Love Angular? Give our repo a star ⭐ ⬆️.
