Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/vite/src/module-runner/sourcemap/interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function CallSiteToString(this: CallSite) {
const isMethodCall = !(this.isToplevel() || isConstructor)
if (isMethodCall) {
let typeName = this.getTypeName()
// Fixes shim to be backward compatable with Node v0 to v4
// Fixes shim to be backward compatible with Node v0 to v4
if (typeName === '[object Object]') typeName = 'null'

const methodName = this.getMethodName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe.runIf(isBuild)('build', () => {

describe.runIf(isServe)('server', () => {
test('should log 500 error in browser for malformed tsconfig', () => {
// don't test for actual complete message as this might be locale dependant. chrome does log 500 consistently though
// don't test for actual complete message as this might be locale dependent. chrome does log 500 consistently though
expect(browserLogs.find((x) => x.includes('500'))).toBeTruthy()
expect(browserLogs).not.toContain('tsconfig error fixed, file loaded')
})
Expand Down
Loading