File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/angular_devkit/build_angular/src Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ export async function normalizeOptions(
221
221
if ( options . server ) {
222
222
serverEntryPoint = path . join ( workspaceRoot , options . server ) ;
223
223
} else if ( options . server === '' ) {
224
- throw new Error ( '` server` option cannot be an empty string.' ) ;
224
+ throw new Error ( 'The " server" option cannot be an empty string.' ) ;
225
225
}
226
226
227
227
let prerenderOptions ;
@@ -253,6 +253,12 @@ export async function normalizeOptions(
253
253
} ;
254
254
}
255
255
256
+ if ( ( appShellOptions || ssrOptions || prerenderOptions ) && ! serverEntryPoint ) {
257
+ throw new Error (
258
+ 'The "server" option is required when enabling "ssr", "prerender" or "app-shell".' ,
259
+ ) ;
260
+ }
261
+
256
262
// Initial options to keep
257
263
const {
258
264
allowedCommonJsDependencies,
Original file line number Diff line number Diff line change @@ -155,7 +155,6 @@ export function createServerCodeBundleOptions(
155
155
sourceFileCache : SourceFileCache ,
156
156
) : BuildOptions {
157
157
const {
158
- jit,
159
158
serverEntryPoint,
160
159
workspaceRoot,
161
160
ssrOptions,
You can’t perform that action at this time.
0 commit comments