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
Ideally, we can identify angular packages through the package.json and module field that contains fesm** and add those to the ssr.noExternal array internally. This would reduce the amount of manual configuration for SSR, as well as cryptic errors about injection context on packages we don't track manually.
We could also allow opt-ing out based on the name of the package.
Which scope/s are relevant/related to the feature request?
platform
Information
We have an internal list of commonly used Angular packages that need SSR transform
https://github.com/analogjs/analog/blob/beta/packages/platform/src/lib/router-plugin.ts#L18
For other cases, we instruct people to add them manually to the
ssr.noExternal
array in the vite config.https://analogjs.org/docs/features/server/server-side-rendering#transforming-packages-for-ssr-compatibility
Ideally, we can identify angular packages through the
package.json
andmodule
field that containsfesm**
and add those to thessr.noExternal
array internally. This would reduce the amount of manual configuration for SSR, as well as cryptic errors about injection context on packages we don't track manually.We could also allow opt-ing out based on the name of the package.
This would be configurable also
Describe any alternatives/workarounds you're currently using
No response
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: