admin_vue/11-前端模块化开发Webpack(Node.js基础)/04-webpack_Loader使用/node_modules/next-tick
3056762376@qq.com 3aeda6d214 changes 2022-11-20 18:09:32 +08:00
..
.github changes 2022-11-20 18:09:32 +08:00
test changes 2022-11-20 18:09:32 +08:00
.editorconfig changes 2022-11-20 18:09:32 +08:00
.lint changes 2022-11-20 18:09:32 +08:00
CHANGELOG.md changes 2022-11-20 18:09:32 +08:00
CHANGES changes 2022-11-20 18:09:32 +08:00
LICENSE changes 2022-11-20 18:09:32 +08:00
README.md changes 2022-11-20 18:09:32 +08:00
index.js changes 2022-11-20 18:09:32 +08:00
package.json changes 2022-11-20 18:09:32 +08:00

README.md

next-tick

Environment agnostic nextTick polyfill

To be used in environment agnostic modules that need nextTick functionality.

  • When run in Node.js process.nextTick is used
  • In modern engines, microtask resolution is guaranteed by queueMicrotask
  • In older browsers, MutationObserver is used as a fallback
  • In other engines setImmediate or setTimeout(fn, 0) is used as fallback.
  • If none of the above is supported module resolves to null

Installation

NPM

In your project path:

$ npm install next-tick

Browser

To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: Browserify, Webmake or Webpack

Tests Build Status

$ npm test

Security contact information

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.


Get professional support for d with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.