Skip to content

Commit

Permalink
refactor: update source map folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Feb 1, 2024
1 parent 4c0d3fa commit 1db9c01
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/vite/src/node/ssr/runtime/moduleCache.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DecodedMap } from './source-map/decoder'
import { DecodedMap } from './sourcemap/decoder'
import type { ModuleCache } from './types'
import { decodeBase64, isWindows } from './utils'

Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/ssr/runtime/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
} from './constants'
import { silentConsole } from './hmrLogger'
import { createHMRHandler } from './hmrHandler'
import { enableSourceMapSupport } from './source-map/index'
import { enableSourceMapSupport } from './sourcemap/index'

interface ViteRuntimeDebugger {
(formatter: unknown, ...args: unknown[]): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,7 @@ function wrapCallSite(frame: CallSite, state: State) {
return frame
}

function prepareStackTrace(
// runtime: ViteRuntime,
// options: InterceptorOptions,
error: Error,
stack: CallSite[],
) {
function prepareStackTrace(error: Error, stack: CallSite[]) {
const name = error.name || 'Error'
const message = error.message || ''
const errorString = `${name}: ${message}`
Expand Down
4 changes: 2 additions & 2 deletions packages/vite/src/node/ssr/runtime/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import type {
ssrImportMetaKey,
ssrModuleExportsKey,
} from './constants'
import type { DecodedMap } from './source-map/decoder'
import type { InterceptorOptions } from './source-map/interceptor'
import type { DecodedMap } from './sourcemap/decoder'
import type { InterceptorOptions } from './sourcemap/interceptor'

export interface DefineImportMetadata {
/**
Expand Down

0 comments on commit 1db9c01

Please sign in to comment.