mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
cleanerrors flag
This commit is contained in:
parent
f48ecdb2b9
commit
1474f76337
3 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
import { decodeUrl } from "../../shared";
|
||||
import { ScramjetClient } from "../client";
|
||||
|
||||
export const enabled = () => self.$scramjet.config.flags.cleanerrors;
|
||||
export default function (client: ScramjetClient, self: Self) {
|
||||
// v8 only. all we need to do is clean the scramjet urls from stack traces
|
||||
Error.prepareStackTrace = (error, stack) => {
|
||||
|
|
|
@ -30,7 +30,8 @@ export class ScramjetController {
|
|||
flags: {
|
||||
serviceworkers: false,
|
||||
naiiveRewriter: false,
|
||||
captureErrors: false,
|
||||
captureErrors: true,
|
||||
cleanerrors: false,
|
||||
sourcemaps: false,
|
||||
},
|
||||
};
|
||||
|
|
1
src/types.d.ts
vendored
1
src/types.d.ts
vendored
|
@ -23,6 +23,7 @@ type ScramjetFlags = {
|
|||
serviceworkers: boolean;
|
||||
naiiveRewriter: boolean;
|
||||
captureErrors: boolean;
|
||||
cleanerrors: boolean;
|
||||
sourcemaps: boolean;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue