Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Rewrite define as undefined #144

@Rich-Harris

Description

@Rich-Harris

A lot of UMD modules check for define && define.amd before module && module.exports, which causes problems if a module is being loaded on a page where define is, well, defined.

Easy way to fix this problem (tip 'o the hat to @wpf500) – rewrite any define references (that aren't in scope) to undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions