fix(@angular/build): set ngServerMode during vite prebundling

This commit sets the `ngServerMode` in the prebundled deps.
This commit is contained in:
Alan Agius 2024-10-30 22:04:04 +00:00 committed by Alan Agius
parent bc43f9567c
commit c242d2933a

View File

@ -801,6 +801,9 @@ function getDepOptimizationConfig({
supported: getFeatureSupport(target, zoneless),
plugins,
loader,
define: {
'ngServerMode': `${ssr}`,
},
resolveExtensions: ['.mjs', '.js', '.cjs'],
},
};