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

fix typeof require === "function" && require #108

Merged
merged 1 commit into from
Sep 17, 2016
Merged

fix typeof require === "function" && require #108

merged 1 commit into from
Sep 17, 2016

Conversation

Rich-Harris
Copy link
Contributor

Fixes #77 and #83. Rather than rewriting typeof require, this replaces require identifiers (other than those used in require(...) expressions) with a commonjsRequire helper. If it gets called, it'll just throw an error, but in the majority of cases it's not there to get called, it's there for some other runtime check that probably shouldn't be a runtime check.

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 this pull request may close these issues.

1 participant