-
Notifications
You must be signed in to change notification settings - Fork 3
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
webcomponent migration #30
webcomponent migration #30
Conversation
export function withModuleFederationPlugin(arg0: { exposes: any }) { | ||
throw new Error('Function not implemented.'); | ||
} | ||
export function apiConfigProvider( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed anywhere?
}, | ||
{ | ||
path: 'search', | ||
matcher: startsWith('search'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this change you are removing possibility to access DocumentSearchModule via empty path. You should do the following:
{
matcher: startsWith(''),
redirectTo: 'search',
pathMatch: 'full',
},
filename: 'remoteEntry.js', | ||
exposes: { | ||
'./DocumentRemoteModule': './src/app/remote.module.ts', | ||
'./DocumentRemoteModule': 'src/bootstrap.ts', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use 'src/main.ts
file here
@@ -58,8 +59,55 @@ const config = withModuleFederationPlugin({ | |||
requiredVersion: 'auto', | |||
includeSecondaries: true, | |||
}, | |||
'@onecx/angular-auth': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should make sure that every package form package-lock.json starting with @onecx/*
is shared. I think @onecx/angular-accelerator
is missing.
No description provided.