aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/systemjs/test/tests/umd.js
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/systemjs/test/tests/umd.js')
-rw-r--r--thirdparty/systemjs/test/tests/umd.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/thirdparty/systemjs/test/tests/umd.js b/thirdparty/systemjs/test/tests/umd.js
new file mode 100644
index 000000000..7faad2ba9
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/umd.js
@@ -0,0 +1,10 @@
+(function (root, factory) {
+ if (typeof define === 'function' && define.amd)
+ define(['./umd-dep.js'], function(dep) {
+ return (root.amdWebGlobal = factory(dep));
+ });
+ else
+ root.amdWebGlobal = factory(root.dep);
+}(this, function(dep) {
+ return { d: dep.dep };
+}));