Skip to content

Commit

Permalink
✨ export prefetchApps function (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuitos authored Apr 9, 2020
1 parent 892ac88 commit 996a92b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export { loadMicroApp, registerMicroApps, start } from './apis';
export * from './errorHandler';
export * from './effects';
export * from './interfaces';
export { prefetchApps } from './prefetch';
4 changes: 3 additions & 1 deletion src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @since 2019-05-16
*/
import { ImportEntryOpts } from 'import-html-entry';
import { RegisterApplicationConfig, StartOpts } from 'single-spa';
import { RegisterApplicationConfig, StartOpts, Parcel } from 'single-spa';

declare global {
interface Window {
Expand Down Expand Up @@ -68,6 +68,8 @@ export type FrameworkLifeCycles<T extends object> = {
afterUnmount?: LifeCycleFn<T> | Array<LifeCycleFn<T>>; // function after app unmount
};

export type MicroApp = Parcel;

export type Rebuilder = () => void;
export type Freer = () => Rebuilder;

Expand Down

1 comment on commit 996a92b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for website ready!

Built with commit 996a92b

https://https://qiankun-iritcbkf3.now.sh

Please sign in to comment.