@sliit-foss/babel-plugin-transform-trace
v0.3.0
Published
Adds tracing to the source code during transformation
Downloads
9
Maintainers
Readme
@sliit-foss/babel-plugin-transform-trace
Adds tracing to the source code during transpilation
The transformed code will need the following package installed to be able to successfully run :- @sliit-foss/functions
Install
Using npm:
npm install --save-dev @sliit-foss/babel-plugin-transform-trace
or using yarn:
yarn add @sliit-foss/babel-plugin-transform-trace --dev
Options
- ignore-functions: Array of function names to ignore when adding tracing
- clean: Boolean value which when
true
omits the default behaviour of tracing anonymous functions which can pollute the logs
Example babel config:-
{ "plugins": [ [ "@sliit-foss/babel-plugin-transform-trace", { "ignore-functions": ["foo", "bar"], "clean": true } ] ] }