We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b670a8 commit 2b5f23dCopy full SHA for 2b5f23d
libs/nx-angular-mf/src/builders/es-plugin/entry-point-for-extend-dependencies.ts
@@ -21,6 +21,20 @@ export function entryPointForExtendDependencies(config: ConfigMf): Plugin {
21
delete build.initialOptions.define.ngServerMode;
22
build.initialOptions.splitting = false;
23
24
+ if (build.initialOptions.entryPoints['server']) {
25
+ build.onResolve({ filter: /./ }, (data) => {
26
+ const { path } = data;
27
+ if (path === '@angular/ssr/node') {
28
+ return {
29
+ path: require.resolve('@angular/ssr/node', {
30
+ paths: [process.cwd()],
31
+ }),
32
+ };
33
+ }
34
+ return null;
35
+ });
36
37
+
38
if (build.initialOptions.platform !== 'browser') return;
39
40
build.onEnd((resultBuild) => {
0 commit comments