import { defineConfig, splitVendorChunkPlugin } from "vite"; import react from "@vitejs/plugin-react"; import checker from "vite-plugin-checker"; import legacy from "@vitejs/plugin-legacy"; const addScriptCSPNoncePlaceholderPlugin = () => { return { name: "add-script-nonce-placeholderP-plugin", apply: "build", transformIndexHtml: { order: "post", handler(htmlData) { return htmlData.replaceAll( /