Declare a subapp.
NOTE: A webpack plugin will statically analyze the code to extract the subapp info so options must be a literal object in place. It cannot be a variable declared elsewhere.
GOOD:
export const subapp1 = declareSubApp({ name: "Subapp1", getModule: () => import("subapp1")}) Copy
export const subapp1 = declareSubApp({ name: "Subapp1", getModule: () => import("subapp1")})
BAD:
const subappInfo = { name: "Subapp1", getModule: () => import("subapp1")};export const subapp1 = declareSubApp(subappInfo); Copy
const subappInfo = { name: "Subapp1", getModule: () => import("subapp1")};export const subapp1 = declareSubApp(subappInfo);
options
subapp definition
Declare a subapp.
NOTE: A webpack plugin will statically analyze the code to extract the subapp info so options must be a literal object in place. It cannot be a variable declared elsewhere.
GOOD:
BAD: