Skip to content

global leaks if webpack uses AMD #2842

@yinghaochan

Description

@yinghaochan

https://github.com/lodash/lodash/blob/master/dist/lodash.core.js#L3815

webpack by default transpiles

if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {

to:

image

and exposes a global unless you specifically disable AMD.

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