lib.js 798 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. if (typeof define !== 'function') { var define = require('../../amdefine')(module) }
  2. define('sub/nested/d', function (require, exports, module) {
  3. var c = require('../c'),
  4. e = require('./e');
  5. return {
  6. name: 'd',
  7. e: e,
  8. cName: c.name
  9. };
  10. });
  11. define('sub/nested/e', function (require, exports) {
  12. exports.name = 'e';
  13. });
  14. define('b', {
  15. name: 'b'
  16. });
  17. define('sub/c', function (require, exports, module) {
  18. //A fake out, modify the exports, but still prefer the
  19. //return value as the module value.
  20. exports.name = 'badc';
  21. return {
  22. name: 'c'
  23. };
  24. });
  25. define('lib', ['./b', './sub/nested/d'], function (b, d) {
  26. return {
  27. name: 'lib',
  28. b: b,
  29. d: d
  30. };
  31. });
  32. module.exports = define.require('lib');