Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable AMD-compatible module output #1200

Merged
merged 1 commit into from
Jul 13, 2016
Merged

Enable AMD-compatible module output #1200

merged 1 commit into from
Jul 13, 2016

Conversation

mislav
Copy link
Collaborator

@mislav mislav commented Jul 13, 2016

When a module loader is present at runtime, this wraps Zepto as an anonymous module. It still exports Zepto and $ to the global namespace when imported, though, to keep compatibility with plugins that expect it there. This is akin to what jQuery does.

With no module loader, zepto.js executes normally.

Opt out of this AMD shim by setting NOAMD=1 environment variable.

References #342, #797 #1030 #1039;
fixes #1052, fixes #955, fixes #900, fixes #751, fixes #708.

When a module loader is present at runtime, this wraps Zepto as an
anonymous module. It still exports `Zepto` and `$` to the global
namespace when imported, though, to keep compatibility with plugins
that expect it there.

With no module loader, zepto.js executes normally.

Opt out of this AMD shim by setting `NOAMD=1` environment variable.
@mislav mislav force-pushed the amd branch 3 times, most recently from 60d6af8 to 0a71efc Compare July 13, 2016 14:10
@mislav mislav merged commit 623b37d into master Jul 13, 2016
@mislav mislav deleted the amd branch July 13, 2016 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant