Skip to content

variable injection for node polyfills sometimes fails with IIFEs #494

@ddelbondio

Description

@ddelbondio

When i define a module which just contains an IIFE like:

(function(console) {

})(global.console);

webpack doesn't recognize the usage of the global and doesn't inject the node polyfill into the scope
of the the module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions