refactor browserify fix. see #158.
This commit is contained in:
parent
a42f512c44
commit
956836a9ed
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue