mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-22 22:29:30 +00:00
Fix Vitest import warning
Fixes the following warning: [warn] (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite: - import "./vite.config" without a file extension (vitest.config.ts:3:35). Add the file extension Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user