Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide option to annotate only whitelisted identifiers #9

Open
Andarist opened this issue Sep 30, 2017 · 0 comments
Open

Provide option to annotate only whitelisted identifiers #9

Andarist opened this issue Sep 30, 2017 · 0 comments

Comments

@Andarist
Copy link
Owner

Andarist commented Sep 30, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant