babel-plugin-annotate-pure-calls icon indicating copy to clipboard operation
babel-plugin-annotate-pure-calls copied to clipboard

Provide option to annotate only whitelisted identifiers

Open Andarist opened this issue 8 years ago • 0 comments

Note - the option should be able to handle renamed imports like this:

{ whitelist: [ 'taggedTemplateLiteral', { identifier: 'css' , source: 'emotion'  } ] }

So even if css gets some other local specifier (i.e. createCss), the plugin should be able to annotate createCss.

This would help people with annotating their bundles more safely.

Note that for the applications it might still be better to just use pure_funcs of the UglifyJS.

Andarist avatar Sep 30 '17 14:09 Andarist