babel-plugin-annotate-pure-calls
babel-plugin-annotate-pure-calls copied to clipboard
Provide option to annotate only whitelisted identifiers
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.