chore: initial commit with basic module federation setup in vite config
This commit is contained in:
20
vite.config.ts
Normal file
20
vite.config.ts
Normal 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"],
|
||||
}),
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user