import { v4wp } from "@kucrut/vite-for-wp";
import react from "@vitejs/plugin-react";
import path from "path";

export default {
  plugins: [
    v4wp({
      input: "backend/views/src/main.jsx",
      outDir: "assets/build",
    }),
    react(),
  ],

  build: {
    sourcemap: false,
    chunkSizeWarningLimit: 2024,
  },

  resolve: {
    alias: {
      "@": path.resolve(__dirname, "./src"),
    },
  },
};
