Skip to content

Commit

Permalink
fix(plugin-pha): add attr (#6421)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrpandaLiu authored Jul 27, 2023
1 parent d33f3e6 commit e40a7cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-forks-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ice/plugin-pha': patch
---

fix: add `bounces` attr
2 changes: 2 additions & 0 deletions packages/plugin-pha/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const decamelizeKeys = [
'cacheQueryParams',
'customDataSource',
'enableExpiredManifest',
'bounces',
];

// Do not decamelize list.
Expand Down Expand Up @@ -81,6 +82,7 @@ export const validPageConfigKeys = [
'pullRefresh',
'queryParamsPassIgnoreKeys',
'downgradeUrl',
'bounces',
];

// The manifest configuration is the default value for the page configuration
Expand Down
2 changes: 2 additions & 0 deletions packages/plugin-pha/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export type Manifest = Partial<{
routes: Page[];
enableExpiredManifest: boolean;
pullRefresh?: PullRefresh;
bounces: boolean;
}> & WindowConfig & Record<string, any>;

export type PHAManifest = Partial<{
Expand All @@ -213,4 +214,5 @@ export type PHAManifest = Partial<{
max_age: number;
package_resources: Record<string, string>;
resource_prefetch: ResourcePrefetch;
bounces: boolean;
}>;

0 comments on commit e40a7cb

Please sign in to comment.