Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nxext Angular progress & known issues #533

Open
4 of 5 tasks
Jordan-Hall opened this issue Mar 6, 2022 · 1 comment
Open
4 of 5 tasks

Nxext Angular progress & known issues #533

Jordan-Hall opened this issue Mar 6, 2022 · 1 comment
Assignees
Labels
Angular bug Something isn't working

Comments

@Jordan-Hall
Copy link
Collaborator

Jordan-Hall commented Mar 6, 2022

This issue will remain open until Angular is out of Alpha.

Known issues/bugs/resolved issues:

Production builds

  • bundle size need to be shrink

v13.0.0-alpha.1 Bugs introduced

v13.0.0-alpha.2 (Next release - https://github.com/nxext/nx-extensions/tree/package-angular)

Issues resolved from previous version:

  • Vite plugin tries to compile CSS as typescript
  • You can now create your own SCSS compiler - we don't want to support it out the box on these packages
  • Angular: Can't take an interface as @Input to a component #489 Using interfaces on decorator properties has an acceptable workaround. Use import type when importing interface

Additional Change:

  • sperate packages into 3 standalone packages
    • @nxext/angular-vite package allows you to use Vite without NX
    • @nxext/angular-swc - this is the main angular compiler for Nxext
    • @nxext/angular - this is now NX support for angular. We also added support for angular CLI
  • added experimental plugin system. Please read
    component?: Omit<AngularComponentOptions, 'sourceUrl'>;
    /**
    * @summary This is an experiment plugin system. It could be removed or change at any time
    */
    swc?: {
    plugins: Plugin[];
    };
    This is only supported on SWC and VITE plugin.
    • this resolves the Scss issue. You can now extend and add sync support yourself.

New bugs:

@Jordan-Hall Jordan-Hall added the bug Something isn't working label Mar 6, 2022
@Jordan-Hall Jordan-Hall pinned this issue Mar 6, 2022
@Jordan-Hall Jordan-Hall self-assigned this Mar 6, 2022
@Jordan-Hall
Copy link
Collaborator Author

#489 example of how to use interfaces and decorators together

https://github.com/nxext/angular-vite-demo/blob/4a33b349a9dd0a2f5408ed21e98d78fdd4f68a9a/apps/demo/src/app/example.component.ts#L1-L10

Using import type will resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Angular bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant