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.
......@@ -9,16 +9,19 @@
"module": "src/index.js",
"browser": "dist/paged.js",
"dependencies": {
"@babel/polyfill": "^7.0.0",
"@babel/runtime": "^7.1.5",
"css-tree": "1.0.0-alpha.29",
"event-emitter": "^0.3.5",
"lodash": "^4.17.10"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"@babel/cli": "^7.1.5",
"@babel/core": "^7.1.6",
"@babel/plugin-proposal-async-generator-functions": "^7.1.0",
"@babel/plugin-transform-runtime": "^7.1.0",
"@babel/preset-env": "^7.1.6",
"babel-jest": "^23.4.0",
"babel-plugin-transform-async-generator-functions": "^6.24.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"chalk": "^2.4.1",
"express": "^4.16.3",
"jest": "^23.4.1",
......
......@@ -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