From f113d074bf99e6fa8201efb1626e07137c5f07ba Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Fri, 20 Jun 2025 23:56:04 +0200 Subject: [PATCH 1/2] Update tsconfig-json-load-error.spec.ts --- .../__tests__/tsconfig-json-load-error.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playground/tsconfig-json-load-error/__tests__/tsconfig-json-load-error.spec.ts b/playground/tsconfig-json-load-error/__tests__/tsconfig-json-load-error.spec.ts index f0966050543dca..67e4d522b5f64f 100644 --- a/playground/tsconfig-json-load-error/__tests__/tsconfig-json-load-error.spec.ts +++ b/playground/tsconfig-json-load-error/__tests__/tsconfig-json-load-error.spec.ts @@ -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') }) From dbed1c7ef33e43e320e4118fdf0b8e7cb5e9d5cb Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Fri, 20 Jun 2025 23:56:30 +0200 Subject: [PATCH 2/2] Update interceptor.ts --- packages/vite/src/module-runner/sourcemap/interceptor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/module-runner/sourcemap/interceptor.ts b/packages/vite/src/module-runner/sourcemap/interceptor.ts index 38264bdcb49c69..a8f6e10de4cb48 100644 --- a/packages/vite/src/module-runner/sourcemap/interceptor.ts +++ b/packages/vite/src/module-runner/sourcemap/interceptor.ts @@ -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()