Files
ThreadNet-Web/modules/restricted-guests/vite.config.ts
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
923 B
TypeScript
Raw Normal View History

2025-08-12 14:12:57 +01:00
/*
Copyright 2025 New Vector Ltd.
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE files in the repository root for full details.
*/
import { fileURLToPath } from "node:url";
2026-06-08 11:19:13 +01:00
import { mergeConfig } from "vite";
2025-08-12 14:12:57 +01:00
import react from "@vitejs/plugin-react";
import { nodePolyfills } from "vite-plugin-node-polyfills";
2025-12-02 09:40:02 +00:00
import { importCSSSheet } from "@arcmantle/vite-plugin-import-css-sheet";
2026-06-08 11:19:13 +01:00
import baseConfig from "@element-hq/element-web-module-api/vite.base.ts";
2025-08-12 14:12:57 +01:00
2026-06-08 11:19:13 +01:00
export default mergeConfig(baseConfig, {
2025-08-12 14:12:57 +01:00
build: {
lib: {
2026-08-04 10:15:07 +01:00
entry: fileURLToPath(import.meta.resolve("./src/index.tsx")),
2025-08-12 14:12:57 +01:00
name: "element-web-module-restricted-guests",
fileName: "index",
formats: ["es"],
},
},
plugins: [
2025-12-02 09:40:02 +00:00
importCSSSheet(),
2025-08-12 14:12:57 +01:00
react(),
nodePolyfills({
include: ["events"],
}),
],
});