Skip to content

Commit

Permalink
chore: add code
Browse files Browse the repository at this point in the history
  • Loading branch information
kuitos committed Oct 20, 2023
1 parent 6d47e51 commit 55cefe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/qiankun/src/core/loadApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default async function loadApp<T extends ObjectType>(
lifeCycles?: LifeCycles<T>,
) {
const { name: appName, entry, container } = app;
const { fetch = window.fetch, sandbox, globalContext = window } = configuration || {};
const { fetch = window.fetch, sandbox, globalContext = window, transformer } = configuration || {};

const markName = `[qiankun] App ${appName} Loading`;
if (process.env.NODE_ENV === 'development') {
Expand Down Expand Up @@ -56,7 +56,7 @@ export default async function loadApp<T extends ObjectType>(
unmountSandbox = () => sandboxContainer.unmount();
}

const containerOpts: LoaderOpts = { fetch, sandbox: sandboxInstance };
const containerOpts: LoaderOpts = { fetch, sandbox: sandboxInstance, transformer };

const assetPublicPath = calcPublicPath(entry);
const {
Expand Down

0 comments on commit 55cefe0

Please sign in to comment.