You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Native Federation does not support remote loading from Node.js directly. This limitation exists because Node.js does not allow the use of import('http://www.some.url/some-module.js').
However, we can work around this limitation by using the --loader flag and a custom loader for remote scripts. Native Federation can already create importmap.json and build projects to work with this import map. Additionally, it modifies the default Angular builder.
To enable Node.js to handle remote modules similarly to how it's done in the browser, we need to:
Add external options for esbuild for the Node platform, similar to the browser platform.
Set the minifyIdentifiers option to false.
Apply all the configurations and changes currently done for the browser to the Node platform.
Create a custom resolver and add an additional entry point.
By following these steps, we can launch SSR (Server-Side Rendering) after running the build command. However, understanding how the Angular development server works in this context can be challenging. I understand that this approach is a bit of a hack, but it can enable us to use SSR.
While I can create a custom resolver and modify Native Federation, I am having trouble understanding how to correctly change the Angular development server.
The text was updated successfully, but these errors were encountered:
Hi @manfredsteyer
Currently, Native Federation does not support remote loading from Node.js directly. This limitation exists because Node.js does not allow the use of import('http://www.some.url/some-module.js').
However, we can work around this limitation by using the --loader flag and a custom loader for remote scripts. Native Federation can already create importmap.json and build projects to work with this import map. Additionally, it modifies the default Angular builder.
To enable Node.js to handle remote modules similarly to how it's done in the browser, we need to:
By following these steps, we can launch SSR (Server-Side Rendering) after running the build command. However, understanding how the Angular development server works in this context can be challenging. I understand that this approach is a bit of a hack, but it can enable us to use SSR.
While I can create a custom resolver and modify Native Federation, I am having trouble understanding how to correctly change the Angular development server.
The text was updated successfully, but these errors were encountered: