diff --git a/packages/vite-plugin-cloudflare/src/cloudflare-environment.ts b/packages/vite-plugin-cloudflare/src/cloudflare-environment.ts index c4d93fc2..f49e4032 100644 --- a/packages/vite-plugin-cloudflare/src/cloudflare-environment.ts +++ b/packages/vite-plugin-cloudflare/src/cloudflare-environment.ts @@ -179,7 +179,7 @@ export function createCloudflareEnvironmentOptions( ], }, }, - keepProcessEnv: true, + keepProcessEnv: false, }; } diff --git a/playground/module-resolution/__tests__/module-resolution.spec.ts b/playground/module-resolution/__tests__/module-resolution.spec.ts index 3f90891a..836d97cc 100644 --- a/playground/module-resolution/__tests__/module-resolution.spec.ts +++ b/playground/module-resolution/__tests__/module-resolution.spec.ts @@ -76,9 +76,7 @@ describe('module resolution', async () => { * special meaning to us. */ describe('third party packages resolutions', () => { - // TODO: we skip this test on build because a `ReferenceError: process is not defined` is thrown - // (https://github.com/flarelabs-net/vite-plugin-cloudflare/issues/82) - test.skipIf(isBuild)('react', async () => { + test('react', async () => { const result = await getJsonResponse('/third-party/react'); expect(result).toEqual({ '(react) reactVersionsMatch': true,