diff --git a/e2e/utils/env.ts b/e2e/utils/env.ts index 17781ce31e..2161607ea3 100644 --- a/e2e/utils/env.ts +++ b/e2e/utils/env.ts @@ -1,3 +1,5 @@ +import process from 'node:process' + export const BASE = process.env.E2E_BASE ?? '/' export const BUNDLER = process.env.E2E_BUNDLER ?? 'vite' export const COMMAND = process.env.E2E_COMMAND ?? 'dev' diff --git a/packages/cli/src/config/loadUserConfig.ts b/packages/cli/src/config/loadUserConfig.ts index 058f1d5c44..43bff6e0d0 100644 --- a/packages/cli/src/config/loadUserConfig.ts +++ b/packages/cli/src/config/loadUserConfig.ts @@ -1,3 +1,4 @@ +import process from 'node:process' import { pathToFileURL } from 'node:url' import { fs, hash, importFileDefault, path } from '@vuepress/utils' import { build } from 'esbuild' diff --git a/packages/utils/tests/console/withSpinner.spec.ts b/packages/utils/tests/console/withSpinner.spec.ts index cdae161ad8..588860e753 100644 --- a/packages/utils/tests/console/withSpinner.spec.ts +++ b/packages/utils/tests/console/withSpinner.spec.ts @@ -1,3 +1,4 @@ +import process from 'node:process' import { beforeEach, expect, it, vi } from 'vitest' import { withSpinner } from '../../src/index.js'