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

Rewrite define as undefined #144

Closed
Rich-Harris opened this issue Dec 6, 2016 · 0 comments · Fixed by #147
Closed

Rewrite define as undefined #144

Rich-Harris opened this issue Dec 6, 2016 · 0 comments · Fixed by #147

Comments

@Rich-Harris
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant