babel-plugin-looptar
Breaks infinite loops in ui therads in dev environment, this is really helpful if you are building user interfaces, will save your butt a lot :P
Example
This will work with for
, while
, do while
loops alike.
In
// input codefor let i = 0; i < 9001; i++
Out
"use strict";const __looptar = ; // output codefor let i = 0; i < 9001; i++ __looptar;__looptar;
Installation
$ npm install babel-plugin-looptar
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins looptar script.js
Via Node API
;