21 lines
468 B
TypeScript
21 lines
468 B
TypeScript
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"],
|
|
}),
|
|
],
|
|
});
|