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

add amd support #83

Open
oxffaa opened this issue Mar 22, 2015 · 0 comments
Open

add amd support #83

oxffaa opened this issue Mar 22, 2015 · 0 comments

Comments

@oxffaa
Copy link

oxffaa commented Mar 22, 2015

need amd(requirejs) support
like this

(function(global, factory) {
'use strict';

if (typeof define === 'function' && define.amd) {
// AMD
define('path-js', [], function() {
global.Path= factory();
return global.Path;
});
} else if (typeof exports !== 'undefined') {
// Node/CommonJS
exports.Path= factory();
} else {
// Browser global
global.Path= factory();
}
}(this, function() {
// code here
});

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

No branches or pull requests

1 participant