mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 15:02:11 +08:00
fix(@angular/build): set ngServerMode
during vite prebundling
This commit sets the `ngServerMode` in the prebundled deps.
This commit is contained in:
parent
bc43f9567c
commit
c242d2933a
@ -801,6 +801,9 @@ function getDepOptimizationConfig({
|
|||||||
supported: getFeatureSupport(target, zoneless),
|
supported: getFeatureSupport(target, zoneless),
|
||||||
plugins,
|
plugins,
|
||||||
loader,
|
loader,
|
||||||
|
define: {
|
||||||
|
'ngServerMode': `${ssr}`,
|
||||||
|
},
|
||||||
resolveExtensions: ['.mjs', '.js', '.cjs'],
|
resolveExtensions: ['.mjs', '.js', '.cjs'],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user