babel-plugin-babel-strip-test-func
Babel plugin stripping test-only function declarations
Example
In
// input codelet foo; let {}; let __test__foo foobar; {}
Out
// output codelet foo; let foobar;
Installation
$ npm install babel-plugin-strip-test-func
Options
regexp
A regexp used to check identifier.
Example
In
// input codelet foo; let {}; let __foo__foo foobar; {}
Out
// output codelet foo; let foobar;
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins strip-test-func script.js
Via Node API
;
License
Copyright (c) 2018 Benjamin Van Ryseghem
The code is licensed under the MIT license (see LICENSE).