chore: initial commit with basic module federation setup in vite config

This commit is contained in:
Ilia Mashkov
2026-03-12 21:07:00 +03:00
commit 8916fd759e
22 changed files with 4092 additions and 0 deletions

20
vite.config.ts Normal file
View File

@@ -0,0 +1,20 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { federation } from "@module-federation/vite";
export default defineConfig({
plugins: [
react({
babel: {
plugins: [["babel-plugin-react-compiler", {}]],
},
}),
federation({
name: "auth-react-remote",
manifest: true,
filename: "remoteEntry.js",
exposes: {},
shared: ["react", "react-dom", "zustand"],
}),
],
});