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

Unnecesary code #127

Open
pabloalmunia opened this issue Mar 30, 2020 · 1 comment
Open

Unnecesary code #127

pabloalmunia opened this issue Mar 30, 2020 · 1 comment

Comments

@pabloalmunia
Copy link

When we define de plugin with this configuration:

new ClosurePlugin ({mode : 'AGGRESSIVE_BUNDLE'},
                         {languageOut : 'ECMASCRIPT_2018'})

this unnecesary code is included on top of compiled source:

(function(__wpcc){'use strict';var a;"undefined"===typeof a&&(a=function(){});a.p="";}).call(this || window, (window.__wpcc = window.__wpcc || {}));

When the polifills aren't necesary, this code can be removed.

@anandkumarram
Copy link

Yeah facing the same issue

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

3 participants