How to process @angular packages with the linker without @angular/cli
See original GitHub issueWhich @angular/* package(s) are relevant/releated to the feature request?
compiler-cli
Description
Before 13.0.0.-next.10 it was possible to execute ngcc
and let it process the @angular/*
packages to get ivy output in full compilation mode.
With the current release, 13.0.0-next.11, the exeuction of ngcc
does not process the @angular/*
packages. Therefore, these packages remain in partially compilated outputs and can’t be used directly in the browser.
Running ngcc:
Browser error:
Imports packages:
Proposed solution
It would be great to have some sort of tooling / option to process the @angular/*
packages with the linker without having to use the @angular/cli
.
Alternatives considered
One alternative would be to also publish the @angular/*
packages in fully compilated mode.
cheers flash ⚡
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
Creating libraries - Angular
The Angular linker Babel plugin supports build caching, meaning that libraries only need to be processed by the linker a single time, regardless...
Read more >The Angular linker (goodbye ngcc!) - Ninja Squad
You can easily create a library using the Angular CLI. Start by generating a new project with the option that disables the creation...
Read more >A complete guide to Angular libraries - Will Taylor Blog
2 ) Alternatively, include your fonts and images in an assets folder within the library. As the `ng-packagr` build process will not copy...
Read more >Complete beginner guide to publishing an Angular library to ...
1. Write Library in Angular that is compatible with npm format. · Step 2: Now we will add a library to the angular...
Read more >Error: Cannot find module '@angular/compiler-cli/linker'
tsconfig, main.ts, package.json, Dockerfile ... haven't been changed for quite a while now so I'm clueless why this is suddenly no ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@flash-me - I just realised, given your low bundler tooling approach, that you should be aware that the new Angular Package Format (APF) for v13 will default to ES2020, which is not compatible out-of-the-box with Zone.js if the library uses the
async await
syntax.There are a couple of options:
async - await
functions.async-await
syntaxes).EDIT: sorry I made a mistake - the default is still ES2015 (see
@angular/core@next
):So this should not be a problem.
TBH: Probably not 😄 It’s just the step away from just using
ngcc
to introducing another dependency to get things work. But since my approach is not the casual use case of the majority, I’m aware that I might have to solve some stuff on my own.But as I said, the use of
@babel/cli
is acceptable for me.cheers flash ⚡