diff options
Diffstat (limited to 'thirdparty/systemjs/test/tests/meta-deps.js')
-rw-r--r-- | thirdparty/systemjs/test/tests/meta-deps.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/thirdparty/systemjs/test/tests/meta-deps.js b/thirdparty/systemjs/test/tests/meta-deps.js new file mode 100644 index 000000000..6bf3b4520 --- /dev/null +++ b/thirdparty/systemjs/test/tests/meta-deps.js @@ -0,0 +1,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);
\ No newline at end of file |