@sliit-foss/babel-plugin-transform-trace

0.3.0 • Public • Published

@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
          }
        ]
      ]
    }

Package Sidebar

Install

npm i @sliit-foss/babel-plugin-transform-trace

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

12.8 kB

Total Files

7

Last publish

Collaborators

  • sliit.foss