Client: Fix bug with undefined imports

This commit is contained in:
Alexey Safronov 2024-08-21 15:19:32 +04:00
parent 5128ffd675
commit ef85f2d5c4
3 changed files with 3 additions and 8 deletions

View File

@ -33,7 +33,7 @@ import { Provider as MobxProvider } from "mobx-react";
import ThemeProvider from "./components/ThemeProviderWrapper";
import ErrorBoundary from "./components/ErrorBoundaryWrapper";
import store from "client/store";
import store from "SRC_DIR/store";
import i18n from "./i18n";
import "@docspace/shared/polyfills/broadcastchannel";

View File

@ -26,7 +26,7 @@
import React, { useEffect } from "react";
import { Provider as MobxProvider } from "mobx-react";
import store from "client/store";
import store from "SRC_DIR/store";
import CommonWhiteLabel from "./CommonWhiteLabel";
const { authStore } = store;

View File

@ -324,16 +324,11 @@ module.exports = (env, argv) => {
};
}
const remotes = {
client: "client@/remoteEntry.js",
login: "login@/login/remoteEntry.js",
};
config.plugins.push(
new ModuleFederationPlugin({
name: "client",
filename: "remoteEntry.js",
remotes: remotes,
remotes: [],
exposes: {
"./shell": "./src/Shell",
"./store": "./src/store",