Client: Fix bug with undefined imports
This commit is contained in:
parent
5128ffd675
commit
ef85f2d5c4
@ -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";
|
||||
|
@ -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;
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user