diff --git a/package.json b/package.json index 5302c8efe..f289d75a2 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,6 @@ "@types/webextension-polyfill": "^0.12.4", "archiver": "^7.0.1", "autoprefixer": "^10.4.21", - "dotenv": "^17.2.3", "esbuild": "^0.25.11", "esbuild-node-builtin": "^0.1.1", "esbuild-plugin-copy": "^2.1.1", diff --git a/playwright.config.ts b/playwright.config.ts index 51d00a533..5297c43bb 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,11 +1,10 @@ import path from 'node:path'; -import { createRequire } from 'node:module'; +import { loadEnvFile } from 'node:process'; import { defineConfig, devices } from '@playwright/test'; import { testDir, authFile } from './tests/e2e/fixtures/helpers'; if (!process.env.CI) { - const require = createRequire(import.meta.url); - require('dotenv').config({ path: path.join(testDir, '.env'), quiet: true }); + loadEnvFile(path.join(testDir, '.env')); } export default defineConfig({ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f1a3bb8c1..2a85d20be 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -130,9 +130,6 @@ importers: autoprefixer: specifier: ^10.4.21 version: 10.4.21(postcss@8.5.6) - dotenv: - specifier: ^17.2.3 - version: 17.2.3 esbuild: specifier: ^0.25.11 version: 0.25.11 @@ -1925,10 +1922,6 @@ packages: dom-accessibility-api@0.6.3: resolution: {integrity: sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==} - dotenv@17.2.3: - resolution: {integrity: sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==} - engines: {node: '>=12'} - eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} @@ -5405,8 +5398,6 @@ snapshots: dom-accessibility-api@0.6.3: {} - dotenv@17.2.3: {} - eastasianwidth@0.2.0: {} ee-first@1.1.1: {}