export default function (task) {
  if (!task) {
    return new Promise(requestAnimationFrame)
  }
  return new Promise(resolve => requestAnimationFrame(() => {
    task()
    resolve()
  }))
}

@@ -1,8 +1,101 @@
+const nextTick = (typeof window === 'undefined') ? process.nextTick : requestAnimationFrame%0A%0A
 export d
@@ -157,37 +157,24 @@
 Promise(
-requestAnimationFrame
+nextTick
 )%0A  %7D%0A  
@@ -203,37 +203,24 @@
 olve =%3E 
-requestAnimationFrame
+nextTick
 (() =%3E %7B

fix (nextTick): add Node support