Skip to content

Can we support angular? #543

Closed
Closed

Description

@bfrontend
No description provided.

Activity

  1. yyx990803 commented on Jul 15, 2020

    @yyx990803
    Member

    Not really. Angular has too much of its own build specific configs.

  2. xiaoxiangmoe commented on Aug 23, 2020

    @xiaoxiangmoe
    Contributor

    @webxmsj @yyx990803 It seems that this is a feasible thing. But perfect implementation requires ngc to provide single file compilation API.

  3. sozakir commented on Feb 1, 2021

    @sozakir

    @xiaoxiangmoe can we chat regarding vite in angular. Is there any workaround for using vite with angular and what would be the pros and cons?

  4. xiaoxiangmoe commented on Feb 1, 2021

    @xiaoxiangmoe
    Contributor

    @sozakir https://github.com/xiaoxiangmoe/vite-ng-app-demo Here is a workaround for Angular in vite.

  5. sozakir commented on Feb 1, 2021

    @sozakir

    @xiaoxiangmoe can you update the readme to explain about the workaround. Just a high level description about your change. I see your are using vite serve with ngc command concurrently from the commits. why we need

    ngc to provide single file compilation API..

  6. xiaoxiangmoe commented on Feb 13, 2021

    @xiaoxiangmoe
    Contributor

    Currently angular requires type information to compile ts file to js.

    If ngc to provide single file compilation API, we can use ngc as babel plugin or vite plugin.

    @sozakir

    https://github.com/vitejs/create-vite-app/blob/2e197e2f5da9a47eb9be6244d3ee643ea2844bee/template-reason-react/package.json#L5

    As you can see, reason-react use bsb -make-world -clean-world -w in serve mode. And we should alse use ngc --watch in vite now. If ngc to provide single file compilation API, we can just wrap it as a vite plugin.

  7. locked and limited conversation to collaborators on Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions