Skip to content

Commit

Permalink
fix: fix regenerator runtime source for older browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Sep 24, 2021
1 parent 4e695bc commit cc1314a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/constant/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const tempRoot = join(
);

export const constant: IConstant = {
cacheVersion: 1,
endpoint: {
index: "/api",
polyfill: "/api/polyfill"
Expand Down
1 change: 1 addition & 0 deletions src/constant/i-constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface IHeaderConstant {
}

export interface IConstant {
cacheVersion: number;
endpoint: IEndpointConstant;
meta: IMetaConstant;
polyfill: PolyfillDict;
Expand Down
16 changes: 8 additions & 8 deletions src/constant/regenerator-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -697,13 +697,13 @@ export const REGENERATOR_SOURCE = `var regeneratorRuntime = (function() {
};
return {
wrap,
isGeneratorFunction,
AsyncIterator,
mark,
awrap,
async,
keys,
values
wrap: wrap,
isGeneratorFunction: isGeneratorFunction,
AsyncIterator: AsyncIterator,
mark: mark,
awrap: awrap,
async: async,
keys: keys,
values: values
};
})();`;

0 comments on commit cc1314a

Please sign in to comment.