Merge pull request #4277 from element-hq/vitest-warning

Fix Vitest import warning
This commit is contained in:
Robin
2026-09-23 16:04:47 +02:00
committed by GitHub
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import { defineConfig, searchForWorkspaceRoot } from "vite";
import { realpathSync } from "node:fs"; import { realpathSync } from "node:fs";
import * as fs from "node:fs"; import * as fs from "node:fs";
import { vitePluginsConfig } from "./vite.config"; import { vitePluginsConfig } from "./vite.config.ts";
import { scopeStylesToRoot } from "./component/build/scopeStylesToRoot"; import { scopeStylesToRoot } from "./component/build/scopeStylesToRoot";
// Serves the harness under `component/dev`, which embeds Element Call as a // Serves the harness under `component/dev`, which embeds Element Call as a
+1 -1
View File
@@ -7,7 +7,7 @@ Please see LICENSE in the repository root for full details.
import { defineConfig } from "vite"; import { defineConfig } from "vite";
import { vitePluginsConfig } from "./vite.config"; import { vitePluginsConfig } from "./vite.config.ts";
import { scopeStylesToRoot } from "./component/build/scopeStylesToRoot"; import { scopeStylesToRoot } from "./component/build/scopeStylesToRoot";
// Config for Element Call as a React component, to be imported by an // Config for Element Call as a React component, to be imported by an
+1 -1
View File
@@ -8,7 +8,7 @@ Please see LICENSE in the repository root for full details.
import { defineConfig, mergeConfig } from "vite"; import { defineConfig, mergeConfig } from "vite";
import generateFile from "vite-plugin-generate-file"; import generateFile from "vite-plugin-generate-file";
import fullConfig from "./vite.config"; import fullConfig from "./vite.config.ts";
const base = "./"; const base = "./";
+1 -1
View File
@@ -1,6 +1,6 @@
import { defineConfig, mergeConfig } from "vitest/config"; import { defineConfig, mergeConfig } from "vitest/config";
import { playwright } from "@vitest/browser-playwright"; import { playwright } from "@vitest/browser-playwright";
import { vitePluginsConfig } from "./vite.config"; import { vitePluginsConfig } from "./vite.config.ts";
import { storybookTest } from "@storybook/addon-vitest/vitest-plugin"; import { storybookTest } from "@storybook/addon-vitest/vitest-plugin";
import path from "node:path"; import path from "node:path";
import { fileURLToPath } from "node:url"; import { fileURLToPath } from "node:url";