refactor browserify fix. see #158.

This commit is contained in:
Christopher Jeffrey 2015-07-26 17:46:18 -07:00
parent a42f512c44
commit 956836a9ed
1 changed files with 3 additions and 3 deletions

View File

@ -31,8 +31,8 @@ function transform(target) {
}
module.exports = function(file) {
if (!~file.indexOf('widget.js')) {
return transform();
if (path.basename(file) === 'widget.js') {
return transform(true);
}
return transform(true);
return transform();
};