-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore-list stack frames in node_modules even if not explicitly ignor…
…e-listed by their sourcemaps (#73689)
- Loading branch information
Showing
18 changed files
with
178 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 13 additions & 2 deletions
15
test/e2e/app-dir/server-source-maps/fixtures/default/app/ssr-error-log-ignore-listed/page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
'use client' | ||
import { run } from 'internal-pkg' | ||
import { run as runInternal } from 'internal-pkg' | ||
import { run as runInternalSourceMapped } from 'internal-pkg/sourcemapped' | ||
import { run as runExternal } from 'external-pkg' | ||
import { run as runExternalSourceMapped } from 'external-pkg/sourcemapped' | ||
|
||
function logError() { | ||
const error = new Error('Boom') | ||
console.error(error) | ||
} | ||
|
||
export default function Page() { | ||
run(() => logError()) | ||
runInternal(function runWithInternal() { | ||
runInternalSourceMapped(function runWithInternalSourceMapped() { | ||
runExternal(function runWithExternal() { | ||
runExternalSourceMapped(function runWithExternalSourceMapped() { | ||
logError() | ||
}) | ||
}) | ||
}) | ||
}) | ||
return null | ||
} |
3 changes: 3 additions & 0 deletions
3
test/e2e/app-dir/server-source-maps/fixtures/default/external-pkg/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function run(fn) { | ||
return fn() | ||
} |
13 changes: 13 additions & 0 deletions
13
test/e2e/app-dir/server-source-maps/fixtures/default/external-pkg/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "external-pkg", | ||
"private": true, | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"default": "./index.js" | ||
}, | ||
"./sourcemapped": { | ||
"default": "./sourcemapped.js" | ||
} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
test/e2e/app-dir/server-source-maps/fixtures/default/external-pkg/sourcemapped.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
test/e2e/app-dir/server-source-maps/fixtures/default/external-pkg/sourcemapped.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
test/e2e/app-dir/server-source-maps/fixtures/default/external-pkg/sourcemapped.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Compile with pnpm tsc test/e2e/app-dir/server-source-maps/fixtures/default/external-pkg/sourcemapped.ts --sourceMap --target esnext | ||
// tsc compile errors can be ignored | ||
type Fn<T> = () => T | ||
export function run<T>(fn: Fn<T>): T { | ||
return fn() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
"exports": { | ||
".": { | ||
"default": "./index.js" | ||
}, | ||
"./sourcemapped": { | ||
"default": "./sourcemapped.js" | ||
} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
test/e2e/app-dir/server-source-maps/fixtures/default/internal-pkg/sourcemapped.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
test/e2e/app-dir/server-source-maps/fixtures/default/internal-pkg/sourcemapped.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
test/e2e/app-dir/server-source-maps/fixtures/default/internal-pkg/sourcemapped.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Compile with p tsc test/e2e/app-dir/server-source-maps/fixtures/default/internal-pkg/sourcemapped.ts --sourceMap --target esnext | ||
// tsc compile errors can be ignored | ||
type Fn<T> = () => T | ||
export function run<T>(fn: Fn<T>): T { | ||
return fn() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
test/e2e/app-dir/server-source-maps/fixtures/default/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"dependencies": { | ||
"internal-pkg": "file:./internal-pkg" | ||
"internal-pkg": "file:./internal-pkg", | ||
"external-pkg": "file:./external-pkg" | ||
} | ||
} |
Oops, something went wrong.