1.0.1 • Published 5 years ago
babel-plugin-debug-functions v1.0.1
babel-plugin-debug-functions
Run it before @rob.j.qva/babel-plugin-debug! Then it inserts console.log(\" DEBUG line:\", , \"file:\", \" \", )\" on all functions between DEBUG_START and DEBUG_END.
On it's own just outputs __DEBUG() on those functions.
Usage
{
plugins: [ '@rob.j.qva/babel-plugin-debug-functions', [ '@rob.j.qva/babel-plugin-debug', {'production': false} ] ]
}
To disable debugging and remove all __DEBUG, set production to true.