Skip to content

Commit

Permalink
feat: Added polyfill support for setImmediate
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Oct 8, 2018
1 parent 2a6b549 commit 92ab7eb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"requestidlecallback": "^0.3.0",
"resize-observer": "^1.0.0-alpha.1",
"semver": "^5.5.1",
"setimmediate": "^1.0.5",
"systemjs": "^0.21.5",
"temp-dir": "^1.0.0",
"toposort": "^2.0.2",
Expand Down
7 changes: 7 additions & 0 deletions src/constant/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2564,6 +2564,13 @@ export const constant: IConstant = {
features: ["resizeobserver"],
version: environment.NPM_PACKAGE_DEPENDENCIES_RESIZE_OBSERVER,
dependencies: ["get-computed-style", "requestanimationframe"]
},
setimmediate: {
library: "setimmediate",
relativePaths: ["setImmediate.js"],
features: ["setimmediate"],
version: environment.NPM_PACKAGE_DEPENDENCIES_SETIMMEDIATE,
dependencies: []
}
}
};
1 change: 1 addition & 0 deletions src/environment/environment-defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const environmentDefaults = {
NPM_PACKAGE_MAIN: "",
NPM_PACKAGE_DEPENDENCIES_INTERSECTION_OBSERVER: "",
NPM_PACKAGE_DEPENDENCIES_RESIZE_OBSERVER: "",
NPM_PACKAGE_DEPENDENCIES_SETIMMEDIATE: "",
NPM_PACKAGE_DEPENDENCIES_WHATWG_FETCH: "",
NPM_PACKAGE_DEPENDENCIES__WEBCOMPONENTS_SHADYDOM: "",
NPM_PACKAGE_DEPENDENCIES_POLYFILL_SERVICE: "",
Expand Down
3 changes: 2 additions & 1 deletion src/polyfill/polyfill-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,4 +323,5 @@ export declare type PolyfillDealiasedName =
|"event.hashchange"
|"custom-event"
|"event-source"
|"pointer-event";
|"pointer-event"
|"setimmediate";

0 comments on commit 92ab7eb

Please sign in to comment.