Skip to content

How vite federation plugin works when react remote vite is about to load inside angular that uses webpack #734

@Srimathi04

Description

@Srimathi04

I am loading react vite application inside angular host using wrapper component in angular.

My wrapper component uses
Await loadRemoteModule(
type:'module',
remoteentry:'http:localhost:4000/assets/remoteentry.js
Module:'./App')

Here remoteentry will be configured based on different environment
I can able to load an react vite inside angular app successfully.

But I have an doubt ,is this best way to utilise react inside angular ?

Since when I try to directly use remotename from webpack.config file,I am getting an compatibility issue between webpack and vite bundles.

Let me know what is the best way in to use federation in case of webpack and vite combination mfe application

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions