Commit 23f5573e authored by Fred Chasen's avatar Fred Chasen

Update to babel 7

parent 71d41e5b
{
"presets": ["env"],
"plugins": ["transform-async-generator-functions", "transform-runtime"]
"presets": ["@babel/env"],
"plugins": ["@babel/plugin-proposal-async-generator-functions", "@babel/plugin-transform-runtime"]
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -28,7 +28,7 @@ import {
} from "../utils/dom";
import EventEmitter from "event-emitter";
import Hook from "../utils/hook";
const _requestIdleCallback = 'requestIdleCallback' in window ? requestIdleCallback : requestAnimationFrame;
const _requestIdleCallback = typeof window !== "undefined" && ('requestIdleCallback' in window ? requestIdleCallback : requestAnimationFrame);
const PER_PAGE_CHECK = 4;
......
......@@ -238,4 +238,4 @@ export function defer() {
Object.freeze(this);
}
export const requestIdleCallback = 'requestIdleCallback' in window ? window.requestIdleCallback : window.requestAnimationFrame;
export const requestIdleCallback = typeof window !== "undefined" && ('requestIdleCallback' in window ? window.requestIdleCallback : window.requestAnimationFrame);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment