-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ssr): (backport #18150) fix source map remapping with multiple so…
…urces (#18204) Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
- Loading branch information
1 parent
0474550
commit 262a879
Showing
6 changed files
with
61 additions
and
10 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
packages/vite/src/node/ssr/__tests__/fixtures/multi-source-sourcemaps/dist.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
packages/vite/src/node/ssr/__tests__/fixtures/multi-source-sourcemaps/dist.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
packages/vite/src/node/ssr/__tests__/fixtures/multi-source-sourcemaps/entrypoint.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,12 @@ | ||
/* | ||
* You can rebuild this with: | ||
* - rm -f ./dist.js ./dist.js.map | ||
* - npx esbuild --bundle entrypoint.js --outfile=dist.js --sourcemap --format=esm | ||
*/ | ||
|
||
import nested from './nested-directory/nested-file' | ||
|
||
export function entrypoint() { | ||
console.log(nested) | ||
throw new Error('Hello world') | ||
} |
1 change: 1 addition & 0 deletions
1
...e/src/node/ssr/__tests__/fixtures/multi-source-sourcemaps/nested-directory/nested-file.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 @@ | ||
export default 'Nested file will trigger edge case that used to break sourcemaps' |
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