Content-Length: 212079 | pFad | https://github.com/vitejs/vite/commit/20fdf210ee0ac0824b2db74876527cb7f378a9e8

90 fix(config): make stacktrace path correct when sourcemap is enabled (… · vitejs/vite@20fdf21 · GitHub
Skip to content

Commit

Permalink
fix(config): make stacktrace path correct when sourcemap is enabled (#…
Browse files Browse the repository at this point in the history
…18833)

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
  • Loading branch information
sapphi-red and bluwy authored Dec 4, 2024
1 parent 81c31c1 commit 20fdf21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
@@ -1724,6 +1724,8 @@ async function bundleConfigFile(
format: isESM ? 'esm' : 'cjs',
mainFields: ['main'],
sourcemap: 'inline',
// the last slash is needed to make the path correct
sourceRoot: path.dirname(fileName) + path.sep,
metafile: true,
define: {
__dirname: dirnameVarName,

0 comments on commit 20fdf21

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/vitejs/vite/commit/20fdf210ee0ac0824b2db74876527cb7f378a9e8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy