Skip to content

Instantly share code, notes, and snippets.

@gbiryukov
Created September 3, 2014 09:04
Show Gist options
  • Save gbiryukov/b0a176ed2b49d77acd26 to your computer and use it in GitHub Desktop.
Save gbiryukov/b0a176ed2b49d77acd26 to your computer and use it in GitHub Desktop.

Revisions

  1. gbiryukov created this gist Sep 3, 2014.
    10 changes: 10 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    define('primary', function(require) {
    return {
    util: require('util'),
    main: require('main')
    };
    });

    require(['primary'], function(primary) {
    // primary.util, primary.main
    });