Last active
February 12, 2024 00:04
-
-
Save tricknotes/97d21fba1d508c27bec9 to your computer and use it in GitHub Desktop.
$ 6to5 source.js -m amd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 6to5 source.js -m umd | |
(function (factory) { | |
if (typeof define === "function" && define.amd) { | |
define(["exports", "module"], factory); | |
} else if (typeof exports !== "undefined" && typeof module !== "undefined") { | |
factory(exports, module); | |
} | |
})(function (exports, module) { | |
"use strict"; | |
module.exports = function () { | |
return "hi"; | |
}; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 6to5 source.js -m amd | |
define(["exports", "module"], function (exports, module) { | |
"use strict"; | |
module.exports = function () { | |
return "hi"; | |
}; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function() { | |
return 'hi'; | |
}; |
Author
tricknotes
commented
Feb 6, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment