Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: bluelovers ka
Added: Dec 9, 2017 4:14 PM
Views: 6
Tags: no tags
  1. (function (root, factory)
  2. {
  3.         if (typeof define === 'function' && define.amd)
  4.         {
  5.                 // AMD. Register as an anonymous module.
  6.                 define([], factory);
  7.         }
  8.         else if (typeof exports === 'object')
  9.         {
  10.                 // Node. Does not work with strict CommonJS, but
  11.                 // only CommonJS-like environments that support module.exports,
  12.                 // like Node.
  13.                 module.exports = factory();
  14.                 module.exports.default = module.exports;
  15.         }
  16.         else
  17.         {
  18.                 // Browser globals (root is window)
  19.                 root.upath = factory();
  20.         }
  21. }(this, function ()
  22. {
  23.         "use strict";
  24.  
  25.         var upath = require('./core').upath;
  26.  
  27.         return upath;
  28. }));