Skip to content

Commit baaf46e

Browse files
committed
use options.dev instead of __SVELTEKIT_DEV__ so that testing against src still works
1 parent 12983fe commit baaf46e

File tree

1 file changed

+2
-2
lines changed
  • packages/kit/src/runtime/server/page

1 file changed

+2
-2
lines changed

packages/kit/src/runtime/server/page/render.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function render_response({
7474

7575
const stack = error?.stack;
7676

77-
if (__SVELTEKIT_DEV__ && error) {
77+
if (options.dev && error) {
7878
error.stack = options.get_stack(error);
7979
}
8080

@@ -317,7 +317,7 @@ export async function render_response({
317317
}
318318
}
319319

320-
if (__SVELTEKIT_DEV__ && error) {
320+
if (options.dev && error) {
321321
// reset stack, otherwise it may be 'fixed' a second time
322322
error.stack = stack;
323323
}

0 commit comments

Comments
 (0)