Skip to content

Unnecesary code #127

Open
Open
@pabloalmunia

Description

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.

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions