From 7faac14bb632f020aab222658e0d5c9ce9d97d71 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Mon, 17 Nov 2014 19:31:50 +0200 Subject: [PATCH] Enable core modules. Allow disabling some modules in specific UMD targets. Fixes #14. --- lib/parseOptions.js | 16 ++++++++++------ lib/pathUtils.js | 3 +-- lib/replacer.js | 3 +-- lib/templates/umdWrapper.js | 9 ++++++--- package.json | 4 ++-- .../a (exports A with externals)/expected.js | 16 +++++++++++----- .../a (exports A with externals)/expected.js.map | 2 +- .../a (exports A with externals)/options.js | 6 +++++- .../expected.js | 13 ++++++++----- .../expected.js.map | 2 +- .../options.js | 8 +++++++- test/suites/a (exports A with map)/expected.js | 13 ++++++++----- .../a (exports A with map)/expected.js.map | 2 +- test/suites/a (exports A with map)/options.js | 8 +++++++- test/suites/a (exports A)/expected.js | 13 ++++++++----- test/suites/a (exports A)/options.js | 8 +++++++- test/suites/c (no exports)/expected.js | 7 +++++-- test/suites/c (no exports)/options.js | 8 +++++++- 18 files changed, 96 insertions(+), 45 deletions(-) diff --git a/lib/parseOptions.js b/lib/parseOptions.js index b0d2abe..517985a 100644 --- a/lib/parseOptions.js +++ b/lib/parseOptions.js @@ -44,13 +44,17 @@ module.exports = function (inOptions) { options.deps = []; for (var name in inOptions.external) { - var dep = inOptions.external[name]; - if (dep === true) { - dep = {name: name}; + var inDep = inOptions.external[name]; + if (inDep === true) { + inDep = {}; } - dep.global = dep.global || dep.name.replace(/\W/g, ''); - dep.amd = dep.amd || dep.name; - dep.id = b.identifier('__external_' + (dep.global || deps.length)); + var globalName = inDep.global || name.replace(/\W/g, ''); + var dep = { + name: inDep.name !== undefined ? inDep.name : name, + global: inDep.global !== undefined ? inDep.global : globalName, + amd: inDep.amd !== undefined ? inDep.amd : name + }; + dep.id = b.identifier(inDep.id || ('__external_' + globalName)); options.deps.push(dep); } diff --git a/lib/pathUtils.js b/lib/pathUtils.js index 9278eff..6b6ae5b 100644 --- a/lib/pathUtils.js +++ b/lib/pathUtils.js @@ -1,7 +1,6 @@ var stdUtils = exports.std = require('path'), nodeResolve = require('resolve'), - badPathSep = /\\/g, - localRegEx = /^\.\.?\//; + badPathSep = /\\/g; exports.forceExt = function (path, ext) { return path + (exports.ext(path) ? '' : '.' + ext); diff --git a/lib/replacer.js b/lib/replacer.js index 48d7343..242febd 100644 --- a/lib/replacer.js +++ b/lib/replacer.js @@ -1,6 +1,5 @@ var Promise = require('./promise'), pathUtils = require('./pathUtils'), - isCoreModule = require('resolve').isCore, astTypes = require('ast-types'), astConsts = require('./astConsts'), b = astTypes.builders, @@ -59,7 +58,7 @@ Replacer.prototype.visit = function (ast) { func = node.callee, arg = node.arguments[0]; - if (n.Identifier.check(func) && func.name === 'require' && n.Literal.check(arg) && !isCoreModule(arg.value)) { + if (n.Identifier.check(func) && func.name === 'require' && n.Literal.check(arg)) { func.name = '_require'; replacer.getDependency(arg.value).referenceFrom(arg); } diff --git a/lib/templates/umdWrapper.js b/lib/templates/umdWrapper.js index 814ae50..38f3097 100644 --- a/lib/templates/umdWrapper.js +++ b/lib/templates/umdWrapper.js @@ -1,20 +1,23 @@ +<% +var undef = b.identifier('undefined'); +%> (function (name, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define([%= deps.map(function (dep) { - return b.literal(dep.amd); + return dep.amd ? b.literal(dep.amd) : undef; }) %], factory); } else if (typeof exports === 'object') { // Node. Does not work with strict CommonJS, but // only CommonJS-like enviroments that support module.exports, // like Node. module.exports = factory(%= deps.map(function (dep) { - return b.callExpression(b.identifier('require'), [b.literal(dep.name)]); + return dep.name ? b.callExpression(b.identifier('require'), [b.literal(dep.name)]) : undef; }) %); } else { // Browser globals (root is window) this[name] = factory(%= deps.map(function (dep) { - return b.memberExpression(b.thisExpression(), b.identifier(dep.global), false); + return dep.global ? b.memberExpression(b.thisExpression(), b.identifier(dep.global), false) : undef; }) %); } }) \ No newline at end of file diff --git a/package.json b/package.json index e7256c6..6171f7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pure-cjs", - "version": "1.17.0", + "version": "1.18.0", "description": "Pure minimalistic CommonJS builder", "bin": "./bin/pure-cjs.js", "main": "./lib/index.js", @@ -16,7 +16,7 @@ "davy": "0.3.3", "escodegen": "git+https://github.com/RReverser/escodegen.git", "esprima": "^1.2.2", - "estemplate": "^0.3.0", + "estemplate": "^0.4.0", "event-stream": "^3.1.7", "resolve": "^1.0.0" }, diff --git a/test/suites/a (exports A with externals)/expected.js b/test/suites/a (exports A with externals)/expected.js index 2fa7c1c..c418880 100644 --- a/test/suites/a (exports A with externals)/expected.js +++ b/test/suites/a (exports A with externals)/expected.js @@ -1,17 +1,20 @@ (function (name, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['davy'], factory); + define([ + 'davy', + undefined + ], factory); } else if (typeof exports === 'object') { // Node. Does not work with strict CommonJS, but // only CommonJS-like enviroments that support module.exports, // like Node. - module.exports = factory(require('davy')); + module.exports = factory(require('davy'), require('url')); } else { // Browser globals (root is window) - this[name] = factory(this.davy); + this[name] = factory(this.davy, undefined); } -}('A', function (__external_davy, define) { +}('A', function (__external_davy, __external_url, define) { function _require(index) { var module = _require.cache[index]; if (!module) { @@ -31,7 +34,7 @@ }, function (module, exports) { // License of a - var c = _require(3), url = require('url'), Promise = _require(0); + var c = _require(3), url = _require(5), Promise = _require(0); this.topValue = _require(2) * 2; this.expectedValue = _require(4).answer; }, @@ -46,6 +49,9 @@ }, function (module, exports) { module.exports = { 'answer': 42 }; + }, + function (module, exports) { + return __external_url; } ]; return _require(1); diff --git a/test/suites/a (exports A with externals)/expected.js.map b/test/suites/a (exports A with externals)/expected.js.map index b36a9f9..11861fe 100644 --- a/test/suites/a (exports A with externals)/expected.js.map +++ b/test/suites/a (exports A with externals)/expected.js.map @@ -1 +1 @@ -{"version":3,"sources":["umdWrapper.js","preamble.js","fixtures/a.js","fixtures/b/index.js","fixtures/c.js","fixtures/data.json"],"names":["name","factory","define","amd","exports","module","_require","index","cache","id","modules","call","c","url","require","Promise","topValue","expectedValue","answer","value","a"],"mappings":"CAAC,UAAUA,IAAV,EAAgBC,OAAhB,EAAyB;AAAA,IACtB,IAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgCA,MAAA,CAAOC,GAA3C,EAAgD;AAAA,QAE5C;AAAA,QAAAD,MAAA,CAAO,C,MAAA,CAAP,EAAyBD,OAAzB,EAF4C;AAAA,KAAhD,MAGO,IAAI,OAAOG,OAAP,KAAmB,QAAvB,EAAiC;AAAA,QAIpC;AAAA;AAAA;AAAA,QAAAC,MAAA,CAAOD,OAAP,GAAiBH,OAAA,C,eAAA,CAAjB,CAJoC;AAAA,KAAjC,MAKA;AAAA,QAEH;AAAA,aAAKD,IAAL,IAAaC,OAAA,C,SAAA,CAAb,CAFG;AAAA,KATe;AAAA,C,MCAzB,U,eAAA,EAA0BC,MAA1B,EAAkC;AAAA,IAClC,SAASI,QAAT,CAAkBC,KAAlB,EAAyB;AAAA,QACxB,IAAIF,MAAA,GAASC,QAAA,CAASE,KAAT,CAAeD,KAAf,CAAb,CADwB;AAAA,QAGxB,IAAI,CAACF,MAAL,EAAa;AAAA,YACZ,IAAID,OAAA,GAAU,EAAd,CADY;AAAA,YAEZC,MAAA,GAASC,QAAA,CAASE,KAAT,CAAeD,KAAf,IAAwB;AAAA,gBAACE,EAAA,EAAIF,KAAL;AAAA,gBAAYH,OAAA,EAASA,OAArB;AAAA,aAAjC,CAFY;AAAA,YAGZE,QAAA,CAASI,OAAT,CAAiBH,KAAjB,EAAwBI,IAAxB,CAA6BP,OAA7B,EAAsCC,MAAtC,EAA8CD,OAA9C,EAHY;AAAA,SAHW;AAAA,QASxB,OAAOC,MAAA,CAAOD,OAAd,CATwB;AAAA,KADS;AAAA,IAalCE,QAAA,CAASE,KAAT,GAAiB,EAAjB,CAbkC;AAAA,IAclCF,QAAA,CAASI,OAAT,GAAmB;AAAA,Q;;SAAA;AAAA,Q;YCZpB;AAAA,gBAAIE,CAAA,GAAIN,QAAA,CAAQ,CAAR,CAAR,EACCO,GAAA,GAAMC,OAAA,CAAQ,KAAR,CADP,EAECC,OAAA,GAAUT,QAAA,CAAQ,CAAR,CAFX,C;YAIA,KAAKU,QAAL,GAAgBV,QAAA,CAAQ,CAAR,IAAiB,CAAjC,C;YACA,KAAKW,aAAL,GAAqBX,QAAA,CAAQ,CAAR,EAAuBY,MAA5C,C;SDOoB;AAAA,Q;YEZpB;AAAA,YAAAb,MAAA,CAAOD,OAAP,GAAiBE,QAAA,CAAQ,CAAR,EAAgBa,KAAhB,GAAwB,CAAzC,C;SFYoB;AAAA,Q;YGZpB;AAAA,gBAAIC,CAAA,GAAId,QAAA,CAAQ,CAAR,CAAR,C;YACAF,OAAA,CAAQe,KAAR,GAAgB,CAAhB,C;SHWoB;AAAA,Q;YIdpBd,MAAA,CAAOD,OAAP,GAAiB,EAChB,UAAU,EADM,EAAjB,C;SJcoB;AAAA,KAAnB,CAdkC;AAAA,IAgBlC,OAAOE,QAAA,C,CAAA,CAAP,CAhBkC;AAAA,C"} \ No newline at end of file +{"version":3,"sources":["umdWrapper.js","preamble.js","fixtures/a.js","fixtures/b/index.js","fixtures/c.js","fixtures/data.json"],"names":["name","factory","define","amd","exports","module","_require","index","cache","id","modules","call","c","url","Promise","topValue","expectedValue","answer","value","a"],"mappings":"CACC,UAAUA,IAAV,EAAgBC,OAAhB,EAAyB;AAAA,IACtB,IAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgCA,MAAA,CAAOC,GAA3C,EAAgD;AAAA,QAE5C;AAAA,QAAAD,MAAA,CAAO;AAAA,Y,MAAA;AAAA,Y,SAAA;AAAA,SAAP,EAAyBD,OAAzB,EAF4C;AAAA,KAAhD,MAGO,IAAI,OAAOG,OAAP,KAAmB,QAAvB,EAAiC;AAAA,QAIpC;AAAA;AAAA;AAAA,QAAAC,MAAA,CAAOD,OAAP,GAAiBH,OAAA,C,eAAA,E,cAAA,CAAjB,CAJoC;AAA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BAAIC,CAAA,GAAIb,QAAA,CAAQ,CAAR,CAAR,C;YACAF,OAAA,CAAQc,KAAR,GAAgB,CAAhB,C;SHWoB;AAAA,Q;YIdpBb,MAAA,CAAOD,OAAP,GAAiB,EAChB,UAAU,EADM,EAAjB,C;SJcoB;AAAA,Q;;SAAA;AAAA,KAAnB,CAdkC;AAAA,IAgBlC,OAAOE,QAAA,C,CAAA,CAAP,CAhBkC;AAAA,C"} \ No newline at end of file diff --git a/test/suites/a (exports A with externals)/options.js b/test/suites/a (exports A with externals)/options.js index 70dba30..40f5446 100644 --- a/test/suites/a (exports A with externals)/options.js +++ b/test/suites/a (exports A with externals)/options.js @@ -4,6 +4,10 @@ module.exports = { map: true, comments: true, external: { - davy: true + davy: true, + url: { + amd: false, + global: false + } } }; \ No newline at end of file diff --git a/test/suites/a (exports A with map and comments)/expected.js b/test/suites/a (exports A with map and comments)/expected.js index 236156a..77b3570 100644 --- a/test/suites/a (exports A with map and comments)/expected.js +++ b/test/suites/a (exports A with map and comments)/expected.js @@ -1,17 +1,17 @@ (function (name, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define([], factory); + define([undefined], factory); } else if (typeof exports === 'object') { // Node. Does not work with strict CommonJS, but // only CommonJS-like enviroments that support module.exports, // like Node. - module.exports = factory(); + module.exports = factory(require('url')); } else { // Browser globals (root is window) - this[name] = factory(); + this[name] = factory(undefined); } -}('A', function (define) { +}('A', function (__external_url, define) { function _require(index) { var module = _require.cache[index]; if (!module) { @@ -343,7 +343,7 @@ }, function (module, exports) { // License of a - var c = _require(6), url = require('url'), Promise = _require(1); + var c = _require(6), url = _require(8), Promise = _require(1); this.topValue = _require(5) * 2; this.expectedValue = _require(7).answer; }, @@ -358,6 +358,9 @@ }, function (module, exports) { module.exports = { 'answer': 42 }; + }, + function (module, exports) { + return __external_url; } ]; return _require(4); diff --git a/test/suites/a (exports A with map and comments)/expected.js.map b/test/suites/a (exports A with map and comments)/expected.js.map index c7027d0..9ca8000 100644 --- a/test/suites/a (exports A with map and comments)/expected.js.map +++ b/test/suites/a (exports A with map and comments)/expected.js.map @@ -1 +1 @@ -{"version":3,"sources":["umdWrapper.js","preamble.js","../node_modules/davy/davy.js","../node_modules/davy/index.js","../node_modules/davy/node_modules/subsequent/index.js","../node_modules/davy/node_modules/subsequent/subsequent.js","fixtures/a.js","fixtures/b/index.js","fixtures/c.js","fixtures/data.json"],"names":["name","factory","define","amd","exports","module","_require","index","cache","id","modules","call","global","next","subsequent","Promise","Davy","fn","value","undefined","__deferreds","arguments","length","resolver","Resolver","val","fulfill","err","reject","e","prototype","isFulfilled","isRejected","then","onFulfill","onReject","deferred","defer","resolve","SUCCESS","FAILURE","push","promise","TypeError","isObject","isFunction","isResolved","self","complete","error","deferreds","type","i","onRejected","onResolved","tap","onFulfilled","spread","apply","cast","each","list","iterator","len","all","parse","race","wrap","obj","Array","isArray","args","buffer","tick","enqueue","execute","setImmediate","process","nextTick","postMessage","message","onMessage","data","stopPropagation","addEventListener","attachEvent","setTimeout","c","url","require","topValue","expectedValue","answer","a"],"mappings":"CAAC,UAAUA,IAAV,EAAgBC,OAAhB,EAAyB;AAAA,IACtB,IAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgCA,MAAA,CAAOC,GAA3C,EAAgD;AAAA,QAE5C;AAAA,QAAAD,MAAA,CAAO,EAAP,EAAyBD,OAAzB,EAF4C;AAAA,KAAhD,MAGO,IAAI,OAAOG,OAAP,KAAmB,QAAvB,EAAiC;AAAA,QAIpC;AAAA;AAAA;AAAA,QAAAC,MAAA,CAAOD,OAAP,GAAiBH,OAAA,EAAjB,CAJoC;AAAA,KAAjC,MAKA;AAAA,QAEH;AAAA,aAAKD,IAAL,IAAaC,OAAA,EAAb,CAFG;AAAA,KATe;AAAA,C,MCAzB,UAA0BC,MAA1B,EAAkC;AAAA,IAClC,SAASI,QAAT,CAAkBC,KAAlB,EAAyB;AAAA,QACxB,IAAIF,MAAA,GAASC,QAAA,CAASE,KAAT,CAA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AAA,CAAP,CAhBkC;AAAA,C"} \ No newline at end of file +{"version":3,"sources":["umdWrapper.js","preamble.js","../node_modules/davy/davy.js","../node_modules/davy/index.js","../node_modules/davy/node_modules/subsequent/index.js","../node_modules/davy/node_modules/subsequent/subsequent.js","fixtures/a.js","fixtures/b/index.js","fixtures/c.js","fixtures/data.json"],"names":["name","factory","define","amd","exports","module","_require","index","cache","id","modules","call","global","next","subsequent","Promise","Davy","fn","value","undefined","__deferreds","arguments","length","resolver","Resolver","val","fulfill","err","reject","e","prototype","isFulfilled","isRejected","then","onFulfill","onReject","deferred","defer","resolve","SUCCESS","FAILURE","push","promise","TypeError","isObject","isFunction","isResolved","self","complete","error","deferreds","type","i","onRejected","onResolved","tap","onFulfilled","spread","apply","cast","each","list","iterator","len","all","parse","race","wrap","obj","Array","isArray","args","buffer","tick","enqueue","execute","setImmediate","process","nextTick","postMessage","message","onMessage","data","stopPropagation","addEventListener","attachEvent","setTimeout","c","url","topValue","expectedValue","answer","a"],"mappings":"CACC,UAAUA,IAAV,EAAgBC,OAAhB,EAAyB;AAAA,IACtB,IAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgCA,MAAA,CAAOC,GAA3C,EAAgD;AAAA,QAE5C;AAAA,QAAAD,MAAA,CAAO,C,SAAA,CAAP,EAAyBD,OAAzB,EAF4C;AAAA,KAAhD,MAGO,IAAI,OAAOG,OAAP,KAAmB,QAAvB,EAAiC;AAAA,QAIpC;AAAA;AAAA;AAAA,QAAAC,MAAA,CAAOD,OAAP,GAAiBH,OAAA,C,cAAA,CAAjB,CAJoC;AAAA,KAAjC,MAKA;AAAA,QAEH;AAAA,aAAKD,IAAL,IAAaC,OAAA,C,SAAA,CAAb,CAFG;AAAA,KATe;AAAA,C,MCDzB,U,cAAA,EAA0BC,MAA1B,EAAkC;AAAA,IAClC,SAASI,QAAT,CAAkBC,KAAlB,EAAyB;AAAA,QACxB,IAAIF,MAAA,GAASC,QAAA,CAASE,KAAT,CAAeD,KAAf,CAAb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AAA,CAAP,CAhBkC;AAAA,C"} \ No newline at end of file diff --git a/test/suites/a (exports A with map and comments)/options.js b/test/suites/a (exports A with map and comments)/options.js index 78be994..51ae487 100644 --- a/test/suites/a (exports A with map and comments)/options.js +++ b/test/suites/a (exports A with map and comments)/options.js @@ -2,5 +2,11 @@ module.exports = { input: 'fixtures/a.js', exports: 'A', map: true, - comments: true + comments: true, + external: { + url: { + amd: false, + global: false + } + } }; \ No newline at end of file diff --git a/test/suites/a (exports A with map)/expected.js b/test/suites/a (exports A with map)/expected.js index 97935dd..a055b55 100644 --- a/test/suites/a (exports A with map)/expected.js +++ b/test/suites/a (exports A with map)/expected.js @@ -1,12 +1,12 @@ (function (name, factory) { if (typeof define === 'function' && define.amd) { - define([], factory); + define([undefined], factory); } else if (typeof exports === 'object') { - module.exports = factory(); + module.exports = factory(require('url')); } else { - this[name] = factory(); + this[name] = factory(undefined); } -}('A', function (define) { +}('A', function (__external_url, define) { function _require(index) { var module = _require.cache[index]; if (!module) { @@ -337,7 +337,7 @@ }(this)); }, function (module, exports) { - var c = _require(6), url = require('url'), Promise = _require(1); + var c = _require(6), url = _require(8), Promise = _require(1); this.topValue = _require(5) * 2; this.expectedValue = _require(7).answer; }, @@ -350,6 +350,9 @@ }, function (module, exports) { module.exports = { 'answer': 42 }; + }, + function (module, exports) { + return __external_url; } ]; return _require(4); diff --git a/test/suites/a (exports A with map)/expected.js.map b/test/suites/a (exports A with map)/expected.js.map index f2acede..32ebd26 100644 --- a/test/suites/a (exports A with map)/expected.js.map +++ b/test/suites/a (exports A with map)/expected.js.map @@ -1 +1 @@ -{"version":3,"sources":["umdWrapper.js","preamble.js","../node_modules/davy/davy.js","../node_modules/davy/index.js","../node_modules/davy/node_modules/subsequent/index.js","../node_modules/davy/node_modules/subsequent/subsequent.js","fixtures/a.js","fixtures/b/index.js","fixtures/c.js","fixtures/data.json"],"names":["name","factory","define","amd","exports","module","_require","index","cache","id","modules","call","global","next","subsequent","Promise","Davy","fn","value","undefined","__deferreds","arguments","length","resolver","Resolver","val","fulfill","err","reject","e","prototype","isFulfilled","isRejected","then","onFulfill","onReject","deferred","defer","resolve","SUCCESS","FAILURE","push","promise","TypeError","isObject","isFunction","isResolved","self","complete","error","deferreds","type","i","onRejected","onResolved","tap","onFulfilled","spread","apply","cast","each","list","iterator","len","all","parse","race","wrap","obj","Array","isArray","args","buffer","tick","enqueue","execute","setImmediate","process","nextTick","postMessage","message","onMessage","data","stopPropagation","addEventListener","attachEvent","setTimeout","c","url","require","topValue","expectedValue","answer","a"],"mappings":"CAAC,UAAUA,IAAV,EAAgBC,OAAhB,EAAyB;AAAA,IACtB,IAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgCA,MAAA,CAAOC,GAA3C,EAAgD;AAAA,QAE5CD,MAAA,CAAO,EAAP,EAAyBD,OAAzB,EAF4C;AAAA,KAAhD,MAGO,IAAI,OAAOG,OAAP,KAAmB,QAAvB,EAAiC;AAAA,QAIpCC,MAAA,CAAOD,OAAP,GAAiBH,OAAA,EAAjB,CAJoC;AAAA,KAAjC,MAKA;AAAA,QAEH,KAAKD,IAAL,IAAaC,OAAA,EAAb,CAFG;AAAA,KATe;AAAA,C,MCAzB,UAA0BC,MAA1B,EAAkC;AAAA,IAClC,SAASI,QAAT,CAAkBC,KAAlB,EAAyB;AAAA,QACxB,IAAIF,MAAA,GAASC,QAAA,CAASE,KAAT,CAAeD,KAAf,CAAb,CADwB;AAAA,QAGxB,IAAI,CAACF,MAAL,EAAa;AAAA,YACZ,IAAID,OAAA,GAAU,EAAd,CADY;AAAA,YAEZC,MAAA,GAASC,QAAA,CAASE,KAAT,CAAeD,KAAf,IAAwB;AAAA,gBAACE,EAAA,EAAIF,KAAL;AAAA,gBAAYH,OAAA,EAASA,OAArB;AAAA,aAAjC,CAFY;AAAA,YAGZE,QAAA,CAASI,OAAT,CAAiBH,KAAjB,EAAwBI,IAAxB,CAA6BP,OAA7B,EAAsCC,MAAtC,EAA8CD,OAA9C,EAHY;AAAA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AAkD;AAAA,oBACvDC,MAAA,CAAOD,OAAP,GAAiBS,IAAjB,CADuD;AAAA,iBAAlD,MAEA;AAAA,oBACLD,MAAA,CAAOE,UAAP,GAAoBD,IAApB,CADK;AAAA,iBA5DS;AAAA,aAAlB,CA+DG,IA/DH,G;SJcoB;AAAA,Q;YKZpB,IAAI0E,CAAA,GAAIjF,QAAA,CAAQ,CAAR,CAAR,EACCkF,GAAA,GAAMC,OAAA,CAAQ,KAAR,CADP,EAEC1E,OAAA,GAAUT,QAAA,CAAQ,CAAR,CAFX,C;YAIA,KAAKoF,QAAL,GAAgBpF,QAAA,CAAQ,CAAR,IAAiB,CAAjC,C;YACA,KAAKqF,aAAL,GAAqBrF,QAAA,CAAQ,CAAR,EAAuBsF,MAA5C,C;SLOoB;AAAA,Q;YMZpBvF,MAAA,CAAOD,OAAP,GAAiBE,QAAA,CAAQ,CAAR,EAAgBY,KAAhB,GAAwB,CAAzC,C;SNYoB;AAAA,Q;YOZpB,IAAI2E,CAAA,GAAIvF,QAAA,CAAQ,CAAR,CAAR,C;YACAF,OAAA,CAAQc,KAAR,GAAgB,CAAhB,C;SPWoB;AAAA,Q;YQdpBb,MAAA,CAAOD,OAAP,GAAiB,EAChB,UAAU,EADM,EAAjB,C;SRcoB;AAAA,KAAnB,CAdkC;AAAA,IAgBlC,OAAOE,QAAA,C,CAAA,CAAP,CAhBkC;AAAA,C"} \ No newline at end of file +{"version":3,"sources":["umdWrapper.js","preamble.js","../node_modules/davy/davy.js","../node_modules/davy/index.js","../node_modules/davy/node_modules/subsequent/index.js","../node_modules/davy/node_modules/subsequent/subsequent.js","fixtures/a.js","fixtures/b/index.js","fixtures/c.js","fixtures/data.json"],"names":["name","factory","define","amd","exports","module","_require","index","cache","id","modules","call","global","next","subsequent","Promise","Davy","fn","value","undefined","__deferreds","arguments","length","resolver","Resolver","val","fulfill","err","reject","e","prototype","isFulfilled","isRejected","then","onFulfill","onReject","deferred","defer","resolve","SUCCESS","FAILURE","push","promise","TypeError","isObject","isFunction","isResolved","self","complete","error","deferreds","type","i","onRejected","onResolved","tap","onFulfilled","spread","apply","cast","each","list","iterator","len","all","parse","race","wrap","obj","Array","isArray","args","buffer","tick","enqueue","execute","setImmediate","process","nextTick","postMessage","message","onMessage","data","stopPropagation","addEventListener","attachEvent","setTimeout","c","url","topValue","expectedValue","answer","a"],"mappings":"CACC,UAAUA,IAAV,EAAgBC,OAAhB,EAAyB;AAAA,IACtB,IAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgCA,MAAA,CAAOC,GAA3C,EAAgD;AAAA,QAE5CD,MAAA,CAAO,C,SAAA,CAAP,EAAyBD,OAAzB,EAF4C;AAAA,KAAhD,MAGO,IAAI,OAAOG,OAAP,KAAmB,QAAvB,EAAiC;AAAA,QAIpCC,MAAA,CAAOD,OAAP,GAAiBH,OAAA,C,cAAA,CAAjB,CAJoC;AAAA,KAAjC,MAKA;AAAA,QAEH,KAAKD,IAAL,IAAaC,OAAA,C,SAAA,CAAb,CAFG;AAAA,KATe;AAAA,C,MCDzB,U,cAAA,EAA0BC,MAA1B,EAAkC;AAAA,IAClC,SAASI,QAAT,CAAkBC,KAAlB,EAAyB;AAAA,QACxB,IAAIF,MAAA,GAASC,QAAA,CAASE,KAAT,CAAeD,KAAf,CAAb,CADwB;AAAA,QAGxB,IAAI,CAACF,MAAL,EAAa;AAAA,YACZ,IAAID,OAAA,GAAU,EAAd,CADY;AAAA,YAEZC,MAAA,GAASC,QAAA,CAASE,KAAT,CAAeD,KAAf,IAAwB;AAAA,gBAACE,EAAA,EAAIF,KAAL;AAAA,gBAAYH,OAAA,EAASA,OAArB;AAAA,aAAjC,CAFY;AAAA,YAGZE,QAAA,CAASI,OAAT,CAAiBH,KAAjB,EAAwBI,IAAxB,CAA6BP,OAA7B,EAAsCC,MAAtC,EAA8CD,OAA9C,EAHY;AAAA,SAHW;AAAA,QASxB,OAAOC,MAAA,CAAOD,OAAd,CATwB;AAAA,KADS;AAAA,IAalCE,QAAA,C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AAA,oBACLD,MAAA,CAAOE,UAAP,GAAoBD,IAApB,CADK;AAAA,iBA5DS;AAAA,aAAlB,CA+DG,IA/DH,G;SJcoB;AAAA,Q;YKZpB,IAAI0E,CAAA,GAAIjF,QAAA,CAAQ,CAAR,CAAR,EACCkF,GAAA,GAAMlF,QAAA,CAAQ,CAAR,CADP,EAECS,OAAA,GAAUT,QAAA,CAAQ,CAAR,CAFX,C;YAIA,KAAKmF,QAAL,GAAgBnF,QAAA,CAAQ,CAAR,IAAiB,CAAjC,C;YACA,KAAKoF,aAAL,GAAqBpF,QAAA,CAAQ,CAAR,EAAuBqF,MAA5C,C;SLOoB;AAAA,Q;YMZpBtF,MAAA,CAAOD,OAAP,GAAiBE,QAAA,CAAQ,CAAR,EAAgBY,KAAhB,GAAwB,CAAzC,C;SNYoB;AAAA,Q;YOZpB,IAAI0E,CAAA,GAAItF,QAAA,CAAQ,CAAR,CAAR,C;YACAF,OAAA,CAAQc,KAAR,GAAgB,CAAhB,C;SPWoB;AAAA,Q;YQdpBb,MAAA,CAAOD,OAAP,GAAiB,EAChB,UAAU,EADM,EAAjB,C;SRcoB;AAAA,Q;;SAAA;AAAA,KAAnB,CAdkC;AAAA,IAgBlC,OAAOE,QAAA,C,CAAA,CAAP,CAhBkC;AAAA,C"} \ No newline at end of file diff --git a/test/suites/a (exports A with map)/options.js b/test/suites/a (exports A with map)/options.js index b8a4751..81fb423 100644 --- a/test/suites/a (exports A with map)/options.js +++ b/test/suites/a (exports A with map)/options.js @@ -1,5 +1,11 @@ module.exports = { input: 'fixtures/a.js', exports: 'A', - map: true + map: true, + external: { + url: { + amd: false, + global: false + } + } }; \ No newline at end of file diff --git a/test/suites/a (exports A)/expected.js b/test/suites/a (exports A)/expected.js index 2dab7ed..8581214 100644 --- a/test/suites/a (exports A)/expected.js +++ b/test/suites/a (exports A)/expected.js @@ -1,12 +1,12 @@ (function (name, factory) { if (typeof define === 'function' && define.amd) { - define([], factory); + define([undefined], factory); } else if (typeof exports === 'object') { - module.exports = factory(); + module.exports = factory(require('url')); } else { - this[name] = factory(); + this[name] = factory(undefined); } -}('A', function (define) { +}('A', function (__external_url, define) { function _require(index) { var module = _require.cache[index]; if (!module) { @@ -337,7 +337,7 @@ }(this)); }, function (module, exports) { - var c = _require(6), url = require('url'), Promise = _require(1); + var c = _require(6), url = _require(8), Promise = _require(1); this.topValue = _require(5) * 2; this.expectedValue = _require(7).answer; }, @@ -350,6 +350,9 @@ }, function (module, exports) { module.exports = { 'answer': 42 }; + }, + function (module, exports) { + return __external_url; } ]; return _require(4); diff --git a/test/suites/a (exports A)/options.js b/test/suites/a (exports A)/options.js index ce8f0ff..8139083 100644 --- a/test/suites/a (exports A)/options.js +++ b/test/suites/a (exports A)/options.js @@ -1,4 +1,10 @@ module.exports = { input: 'fixtures/a.js', - exports: 'A' + exports: 'A', + external: { + url: { + amd: false, + global: false + } + } }; \ No newline at end of file diff --git a/test/suites/c (no exports)/expected.js b/test/suites/c (no exports)/expected.js index 2e1aa93..402ef31 100644 --- a/test/suites/c (no exports)/expected.js +++ b/test/suites/c (no exports)/expected.js @@ -1,4 +1,4 @@ -(function (define) { +(function (__external_url, define) { function _require(index) { var module = _require.cache[index]; if (!module) { @@ -329,7 +329,7 @@ }(this)); }, function (module, exports) { - var c = _require(6), url = require('url'), Promise = _require(1); + var c = _require(6), url = _require(8), Promise = _require(1); this.topValue = _require(5) * 2; this.expectedValue = _require(7).answer; }, @@ -342,6 +342,9 @@ }, function (module, exports) { module.exports = { 'answer': 42 }; + }, + function (module, exports) { + return __external_url; } ]; return _require(6); diff --git a/test/suites/c (no exports)/options.js b/test/suites/c (no exports)/options.js index a9d8c8a..21ab7c6 100644 --- a/test/suites/c (no exports)/options.js +++ b/test/suites/c (no exports)/options.js @@ -1,3 +1,9 @@ module.exports = { - input: 'fixtures/c.js' + input: 'fixtures/c.js', + external: { + url: { + amd: false, + global: false + } + } }; \ No newline at end of file