[Pkg-javascript-commits] [node-module-deps] 102/444: pass opts.extensions to browser-resolve and resolve calls

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:47:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-module-deps.

commit f907591f9c0806b0ac5abe5609c4397df7755033
Author: Andrey Popp <8mayday at gmail.com>
Date:   Fri Mar 22 12:26:56 2013 +0400

    pass opts.extensions to browser-resolve and resolve calls
---
 index.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index 19b2b48..a9c2407 100644
--- a/index.js
+++ b/index.js
@@ -90,7 +90,7 @@ module.exports = function (mains, opts) {
                 if (err) return output.emit('error', err);
                 applyTransforms(file, trx, src, pkg);
             });
-        });
+        }, {extensions: opts.extensions});
     }
     
     function getTransform (pkg) {
@@ -188,7 +188,7 @@ module.exports = function (mains, opts) {
     function makeTransform (file, tr, cb) {
         if (typeof tr === 'function') return cb(null, tr(file));
         
-        var params = { basedir: path.dirname(file) };
+        var params = { basedir: path.dirname(file), extensions: opts.extensions };
         nodeResolve(tr, params, function nr (err, res, again) {
             if (err && again) return cb(err);
             

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-module-deps.git



More information about the Pkg-javascript-commits mailing list