babel-plugin-annotate-pure-calls
babel-plugin-annotate-pure-calls copied to clipboard
This plugins helps with annotating top level functions calls with #__PURE__ comment.
Note - the option should be able to handle renamed imports like this: ```js { whitelist: [ 'taggedTemplateLiteral', { identifier: 'css' , source: 'emotion' } ] } ``` So even...
**Input code** ```js var unusedTimerId = setInterval(function () { pingAPI() }) ``` Even though `setInterval` is used in assignment context and its result remain unused, its probably not desired to...
This adds support for a common pattern we use in @effect/schema. I couldn't get the babel7 tests to pass because the output I get there is identical to the one...