Absolute path to the project root used to classify frames as project files vs. external dependencies.
Optionalfiles: StackFrameFileIndexOptional file lookups; enables URL and basename resolution.
Parses a raw stack trace string into an array of structured frames.
Raw Error.stack string or console-captured stack trace.
All frames found, including non-project frames.
Parses a stack trace and returns only frames that belong to the project.
Raw Error.stack string or console-captured stack trace.
Frames where isProjectFile is true.
Parses Node.js/Angular/Zone.js/browser stack traces into structured frames. Maps the frames to project source files.
Remarks
Frames are classified as project files when their resolved path starts with
projectRootand does not pass throughnode_modules. With a StackFrameFileIndex, browser and source-map frames are mapped onto project files as well: URL paths (http://host/src/app/x.ts,webpack:///./src/...,ng:///...) are checked againstprojectRoot, and a bare file name (x.component.ts) resolves through a unique basename. An ambiguous basename stays external and lists itscandidates. Without an index, URL frames stay external.Example