summaryrefslogtreecommitdiff
path: root/thirdparty/systemjs/test/tests/meta-deps.js
blob: 6bf3b4520b225f0ac63eec5791ed40dcd3e93899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(function(global) {

System.config({
  meta: {
    b: {
      deps: ['a']
    }
  }
});

define('a', [], function() {
  global.MODULEA = 'a';
});

define('b', [], function() {
  return {
    a: global.MODULEA
  };
});

})(typeof window == 'undefined' ? global : window);