From 35fecd985e6f1dee86d0042a34333ec287449fd6 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Fri, 10 Oct 2014 13:09:23 +0300 Subject: [PATCH] Add support for external modules (not to be bundled but used as UMD deps). * Added option for external modules hash with optional separate AMD / global names. Fixes #5. * Add proper source map comparison (check whether all the mappings still work). --- README.md | 1 + lib/astConsts.js | 8 ++- lib/astUtils.js | 5 +- lib/index.js | 4 +- lib/parseOptions.js | 14 +++++ lib/replacer.js | 52 +++++++++++-------- lib/replacerMap.js | 10 +++- lib/templates/umdWrapper.js | 12 +++-- package.json | 14 ++--- .../a (exports A with externals)/expected.js | 49 +++++++++++++++++ .../expected.js.map | 1 + .../a (exports A with externals)/options.js | 9 ++++ .../expected.js.map | 2 +- .../a (exports A with map)/expected.js.map | 2 +- test/test.js | 27 ++++++++-- 15 files changed, 165 insertions(+), 45 deletions(-) create mode 100644 test/suites/a (exports A with externals)/expected.js create mode 100644 test/suites/a (exports A with externals)/expected.js.map create mode 100644 test/suites/a (exports A with externals)/options.js diff --git a/README.md b/README.md index 5518249..cc2a367 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ transform | `Array` / `Function(input)` | Transformation [through](https://githu defaultExt | `String` | Default extension for requires | `"js"` moduleDir | `String` | Modules directory name | `"node_modules"` dryRun | `Boolean` | Don't write output to disk (and don't append `//# sourceMappingURL=...` to code) | `false` +external | `{ [CommonJS name]: (true / { amd?: String, global?: String }) }` | External dependencies (to be excluded from bundling). Each value can be either `true` (for same name across module systems) or hash with specific names;
example: `{jquery: true, lodash: {amd: '../vendor/lodash.js', global: '_'}}` | `{}` ### Result object diff --git a/lib/astConsts.js b/lib/astConsts.js index 399432d..8515d9f 100644 --- a/lib/astConsts.js +++ b/lib/astConsts.js @@ -14,9 +14,13 @@ exports.preamble = astUtils.parse(fs.readFileSync(__dirname + '/templates/preamb attachComment: true }).body; -exports.umdWrapper = astUtils.parse(fs.readFileSync(__dirname + '/templates/umdWrapper.js'), { +var umdTmpl = astUtils.tmpl.compile(fs.readFileSync(__dirname + '/templates/umdWrapper.js', 'utf-8'), { loc: true, source: 'umdWrapper.js', comment: true, attachComment: true -}).body[0].expression; \ No newline at end of file +}); + +exports.getUmdWrapper = function (deps) { + return umdTmpl({b: b, deps: deps}).body[0].expression; +}; \ No newline at end of file diff --git a/lib/astUtils.js b/lib/astUtils.js index 40525bc..15fba54 100644 --- a/lib/astUtils.js +++ b/lib/astUtils.js @@ -1,6 +1,7 @@ var parse = require('esprima').parse, generate = require('escodegen').generate, types = require('ast-types'), + estemplate = require('estemplate'), traverse = types.traverse.fast; exports.parse = parse; @@ -9,4 +10,6 @@ exports.generate = generate; exports.traverse = traverse; exports.builders = types.builders; -exports.namedTypes = types.namedTypes; \ No newline at end of file +exports.namedTypes = types.namedTypes; + +exports.tmpl = estemplate; \ No newline at end of file diff --git a/lib/index.js b/lib/index.js index 1c2553a..5c40a3b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -16,7 +16,7 @@ exports.transform = function (inOptions) { return map.whenAll().then(function (modules) { var factoryExpr = b.functionExpression( null, - astConsts.factoryArgs, + options.deps.map(function (dep) { return dep.id }).concat(astConsts.factoryArgs), b.blockStatement(astConsts.preamble.concat([ b.expressionStatement(b.assignmentExpression( '=', @@ -31,7 +31,7 @@ exports.transform = function (inOptions) { ), expr = ( options.exports - ? b.callExpression(astConsts.umdWrapper, [b.literal(options.exports), factoryExpr]) + ? b.callExpression(astConsts.getUmdWrapper(options.deps), [b.literal(options.exports), factoryExpr]) : b.callExpression(factoryExpr, []) ), result = astUtils.generate(b.program([b.expressionStatement(expr)]), { diff --git a/lib/parseOptions.js b/lib/parseOptions.js index dad8ee7..2f8226c 100644 --- a/lib/parseOptions.js +++ b/lib/parseOptions.js @@ -1,4 +1,5 @@ var pathUtils = require('./pathUtils'); +var b = require('./astUtils').builders; function toValue(value) { return value instanceof Function ? value.apply(null, Array.prototype.slice.call(arguments, 1)) : value; @@ -36,5 +37,18 @@ module.exports = function (inOptions) { options.comments = !!inOptions.comments; options.dryRun = !!inOptions.dryRun; + options.deps = []; + + for (var name in inOptions.external) { + var dep = inOptions.external[name]; + if (dep === true) { + dep = {name: name}; + } + dep.global = dep.global || dep.name.replace(/\W/g, ''); + dep.amd = dep.amd || dep.name; + dep.id = b.identifier('__external_' + (dep.global || deps.length)); + options.deps.push(dep); + } + return options; }; \ No newline at end of file diff --git a/lib/replacer.js b/lib/replacer.js index 6e37f15..4472487 100644 --- a/lib/replacer.js +++ b/lib/replacer.js @@ -14,28 +14,36 @@ function Replacer(options) { this.path = options.path; this.refs = []; - var pipeline = this.map.transform.reduce(function (stream, transform) { - return stream.pipe(transform(options.path)); - }, fs.createReadStream(this.path, {encoding: 'utf-8'})); - - var defer = Promise.defer(); - - pipeline.pipe(es.wait(function (err, js) { - err ? defer.reject(err) : defer.fulfill(js); - })); - - this.promise = defer.promise.then(function (js) { - var ast = astUtils.parse(js, { - loc: true, - source: this.path, - comment: options.comments, - attachComment: options.comments - }); - - this.visit(ast); - - return b.functionExpression(null, astConsts.moduleArgs, b.blockStatement(ast.body)); - }.bind(this)); + if (options.externalId) { + this.promise = Promise.resolve([b.returnStatement(options.externalId)]); + } else { + var pipeline = this.map.transform.reduce(function (stream, transform) { + return stream.pipe(transform(options.path)); + }, fs.createReadStream(this.path, {encoding: 'utf-8'})); + + var defer = Promise.defer(); + + pipeline.pipe(es.wait(function (err, js) { + err ? defer.reject(err) : defer.fulfill(js); + })); + + this.promise = defer.promise.then(function (js) { + var ast = astUtils.parse(js, { + loc: true, + source: this.path, + comment: options.comments, + attachComment: options.comments + }); + + this.visit(ast); + + return ast.body; + }.bind(this)); + } + + this.promise = this.promise.then(function (body) { + return b.functionExpression(null, astConsts.moduleArgs, b.blockStatement(body)); + }); } Replacer.prototype.getDependency = function (path) { diff --git a/lib/replacerMap.js b/lib/replacerMap.js index cb4d205..5ddffa0 100644 --- a/lib/replacerMap.js +++ b/lib/replacerMap.js @@ -1,5 +1,6 @@ var Promise = require('./promise'), - Replacer = require('./replacer'); + Replacer = require('./replacer'), + pathUtils = require('./pathUtils'); function ReplacerMap(options) { this.replacers = {}; @@ -8,6 +9,10 @@ function ReplacerMap(options) { this.comments = options.comments; this.defaultExt = options.defaultExt; this.moduleDir = options.moduleDir; + this.depsMap = options.deps.reduce(function (obj, dep) { + obj[pathUtils.getNodePath('.', dep.name, this)] = dep; + return obj; + }.bind(this), {}); } ReplacerMap.prototype.get = function (path) { @@ -19,7 +24,8 @@ ReplacerMap.prototype.get = function (path) { replacer = this.replacers[path] = new Replacer({ map: this, path: path, - comments: this.comments + comments: this.comments, + externalId: (this.depsMap[path] || {}).id }); this.promises[id] = replacer.promise; diff --git a/lib/templates/umdWrapper.js b/lib/templates/umdWrapper.js index b0d5b25..4b5da37 100644 --- a/lib/templates/umdWrapper.js +++ b/lib/templates/umdWrapper.js @@ -1,14 +1,20 @@ (function (name, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define([], factory); + define(<%= b.arrayExpression(deps.map(function (dep) { + return b.literal(dep.amd); + })) %>, 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 = <%= b.callExpression(b.identifier('factory'), deps.map(function (dep) { + return b.callExpression(b.identifier('require'), [b.literal(dep.name)]); + })) %>; } else { // Browser globals (root is window) - this[name] = factory(); + this[name] = <%= b.callExpression(b.identifier('factory'), deps.map(function (dep) { + return b.memberExpression(b.thisExpression(), b.identifier(dep.global), false); + })) %>; } }) \ No newline at end of file diff --git a/package.json b/package.json index 0871735..bcfdb56 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pure-cjs", - "version": "1.11.1", + "version": "1.12.0", "description": "Pure minimalistic CommonJS builder", "bin": "./bin/pure-cjs.js", "main": "./lib/index.js", @@ -12,15 +12,17 @@ "license": "MIT", "dependencies": { "ast-types": "^0.3.28", - "commander": "^2.2.0", + "commander": "^2.3.0", "davy": "0.3.0", "escodegen": "git+https://github.com/RReverser/escodegen.git", "esprima": "^1.2.2", - "event-stream": "^3.1.5", - "resolve": "^0.7.0" + "estemplate": "^0.1.1", + "event-stream": "^3.1.7", + "resolve": "^1.0.0" }, "devDependencies": { - "mocha": "^1.19.0", - "chai": "^1.9.1" + "chai": "^1.9.2", + "mocha": "^1.21.4", + "source-map": "^0.1.40" } } diff --git a/test/suites/a (exports A with externals)/expected.js b/test/suites/a (exports A with externals)/expected.js new file mode 100644 index 0000000..92c8664 --- /dev/null +++ b/test/suites/a (exports A with externals)/expected.js @@ -0,0 +1,49 @@ +(function (name, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['davy'], 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')); + } else { + // Browser globals (root is window) + this[name] = factory(this.davy); + } +}('A', function (__external_davy, define) { + function _require(index) { + var module = _require.cache[index]; + if (!module) { + var exports = {}; + module = _require.cache[index] = { + id: index, + exports: exports + }; + _require.modules[index].call(exports, module, exports); + } + return module.exports; + } + _require.cache = []; + _require.modules = [ + function (module, exports) { + return __external_davy; + }, + function (module, exports) { + // License of a + var c = _require(2), url = require('url'), Promise = _require(0); + this.topValue = _require(3) * 2; + }, + function (module, exports) { + // License of c + var a = _require(1); + exports.value = 3; + }, + function (module, exports) { + // License of b + module.exports = _require(2).value * 7; + } + ]; + return _require(1); +})); +//# sourceMappingURL=expected.js.map \ No newline at end of file diff --git a/test/suites/a (exports A with externals)/expected.js.map b/test/suites/a (exports A with externals)/expected.js.map new file mode 100644 index 0000000..6b7bbaf --- /dev/null +++ b/test/suites/a (exports A with externals)/expected.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["umdWrapper.js","preamble.js","fixtures/a.js","fixtures/c.js","fixtures/sub/b.js"],"names":["name","factory","define","amd","exports","module","_require","index","cache","id","modules","call","c","url","require","Promise","top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,CAAA,GAAIX,QAAA,CAAQ,CAAR,CAAR,C;YACAF,OAAA,CAAQc,KAAR,GAAgB,CAAhB,C;;;YCDA;AAAA,YAAAb,MAAA,CAAOD,OAAP,GAAiBE,QAAA,CAAQ,CAAR,EAAgBY,KAAhB,GAAwB,CAAzC,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 new file mode 100644 index 0000000..70dba30 --- /dev/null +++ b/test/suites/a (exports A with externals)/options.js @@ -0,0 +1,9 @@ +module.exports = { + input: 'fixtures/a.js', + exports: 'A', + map: true, + comments: true, + external: { + davy: true + } +}; \ No newline at end of file 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 485c666..97b4259 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/c.js","fixtures/sub/b.js"],"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","type","i","onRejected","onResolved","tap","onFulfilled","spread","apply","cast","each","list","iterator","len","all","parse","race","wrap","obj","args","Array","isArray","slice","buffer","tick","enqueue","execute","setImmediate","process","nextTick","postMessage","message","onMessage","data","stopPropagation","addEventListener","attachEvent","setTimeout","c","url","require","topValue","a"],"mappings":"CAAC,UAAUA,IAAV,EAAgBC,OAAhB,EAAyB;AAAA,IACtB,IAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgCA,MAAA,CA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AAA,yBA7CuC;AAAA,wBAkD9C,OAAO9D,IAAP,CAlD8C;AAAA,qBAArC,EAAX,CAFgB;AAAA,gBAsDhB,IAAI,OAAOX,MAAP,KAAkB,UAAlB,IAAgCA,MAAA,CAAOC,GAA3C,EAAgD;AAAA,oBAC9CD,MAAA,CAAO,YAAW;AAAA,wBAChB,OAAOW,IAAP,CADgB;AAAA,qBAAlB,EAD8C;AAAA,iBAAhD,MAIO,IAAI,OAAOR,MAAP,KAAkB,QAAlB,IAA8BA,MAAA,CAAOD,OAAzC,EAAkD;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;;;YCEA;AAAA,gBAAI0E,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,IAAwB,CAAxC,C;;;YCJA;AAAA,gBAAIqF,CAAA,GAAIrF,QAAA,CAAQ,CAAR,CAAR,C;YACAF,OAAA,CAAQc,KAAR,GAAgB,CAAhB,C;;;YCDA;AAAA,YAAAb,MAAA,CAAOD,OAAP,GAAiBE,QAAA,CAAQ,CAAR,EAAgBY,KAAhB,GAAwB,CAAzC,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/c.js","fixtures/sub/b.js"],"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","type","i","onRejected","onResolved","tap","onFulfilled","spread","apply","cast","each","list","iterator","len","all","parse","race","wrap","obj","args","Array","isArray","slice","buffer","tick","enqueue","execute","setImmediate","process","nextTick","postMessage","message","onMessage","data","stopPropagation","addEventListener","attachEvent","setTimeout","c","url","require","topValue","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,C,EAAA,EAAuBD,OAAvB,EAF4C;AAAA,KAAhD,MAGO,IAAI,OAAOG,OAAP,KAAmB,QAAvB,EAAiC;AAAA,QAIpC;AAAA;AAAA;AAAA,QAAAC,MAAA,CAAOD,OAAP,G,SAAA,CAJoC;AAAA,KAAjC,MAKA;AAAA,QAEH;AAAA,aAAKJ,IAAL,I,SAAA,CAFG;AAAA,KATe;AAAA,C;ICA1B,SAASM,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,K;IAYzBE,QAAA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AAAb,MAAA,CAAOD,OAAP,GAAiBE,QAAA,CAAQ,CAAR,EAAgBY,KAAhB,GAAwB,CAAzC,C"} \ No newline at end of file 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 dd6c6b4..57eab3f 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/c.js","fixtures/sub/b.js"],"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","type","i","onRejected","onResolved","tap","onFulfilled","spread","apply","cast","each","list","iterator","len","all","parse","race","wrap","obj","args","Array","isArray","slice","buffer","tick","enqueue","execute","setImmediate","process","nextTick","postMessage","message","onMessage","data","stopPropagation","addEventListener","attachEvent","setTimeout","c","url","require","topValue","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,EAAWD,OAAX,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;ICA1B,SAASK,QAAT,CAAkBC,KAAl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AAA,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;;;YCEA,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,IAAwB,CAAxC,C;;;YCJA,IAAIqF,CAAA,GAAIrF,QAAA,CAAQ,CAAR,CAAR,C;YACAF,OAAA,CAAQc,KAAR,GAAgB,CAAhB,C;;;YCDAb,MAAA,CAAOD,OAAP,GAAiBE,QAAA,CAAQ,CAAR,EAAgBY,KAAhB,GAAwB,CAAzC,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/c.js","fixtures/sub/b.js"],"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","type","i","onRejected","onResolved","tap","onFulfilled","spread","apply","cast","each","list","iterator","len","all","parse","race","wrap","obj","args","Array","isArray","slice","buffer","tick","enqueue","execute","setImmediate","process","nextTick","postMessage","message","onMessage","data","stopPropagation","addEventListener","attachEvent","setTimeout","c","url","require","topValue","a"],"mappings":"CAAC,UAAUA,IAAV,EAAgBC,OAAhB,EAAyB;AAAA,IACtB,IAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgCA,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,qBAArC,EAAX,CAFgB;AAAA,gBAsDhB,IAAI,OAAOX,MAAP,KAAkB,UAAlB,IAAgCA,MAAA,CAAOC,GAA3C,EAAgD;AAAA,oBAC9CD,MAAA,CAAO,YAAW;AAAA,wBAChB,OAAOW,IAAP,CADgB;AAAA,qBAAlB,EAD8C;AAAA,iBAAhD,MAIO,IAAI,OAAOR,MAAP,KAAkB,QAAlB,IAA8BA,MAAA,CAAOD,OAAzC,EAAkD;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;;;YCEA,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,IAAwB,CAAxC,C;;;YCJA,IAAIqF,CAAA,GAAIrF,QAAA,CAAQ,CAAR,CAAR,C;YACAF,OAAA,CAAQc,KAAR,GAAgB,CAAhB,C;;;YCDAb,MAAA,CAAOD,OAAP,GAAiBE,QAAA,CAAQ,CAAR,EAAgBY,KAAhB,GAAwB,CAAzC,C"} \ No newline at end of file diff --git a/test/test.js b/test/test.js index 7a3e26a..9e98bce 100644 --- a/test/test.js +++ b/test/test.js @@ -3,7 +3,8 @@ var fs = require('fs'), cjs = require('..'), Promise = require('../lib/promise'), whenReadFile = Promise.wrap(fs.readFile), - suitesPath = 'suites/'; + suitesPath = 'suites/', + SourceMapConsumer = require('source-map').SourceMapConsumer; function assertEqualContents(content1, content2) { assert.equal(String(content1), String(content2)); @@ -32,10 +33,26 @@ fs.readdirSync(__dirname + '/' + suitesPath).forEach(function (suiteName) { if (output.options.map) { promises.push( whenReadFile(output.options.map, 'utf-8').then(function (contents) { - assertEqualContents( - output.map, - contents - ); + var expectedMap = new SourceMapConsumer(contents); + var actualMap = new SourceMapConsumer(contents); + expectedMap.eachMapping(function (mapping) { + var actualPos = actualMap.originalPositionFor({ + line: mapping.generatedLine, + column: mapping.generatedColumn + }); + var expectedPos = { + source: mapping.source, + line: mapping.originalLine, + column: mapping.originalColumn, + name: mapping.name + }; + for (var prop in expectedPos) { + if (expectedPos[prop] === undefined) { + expectedPos[prop] = null; + } + } + assert.deepEqual(actualPos, expectedPos); + }); }) ); } else {