Skip to content

Commit

Permalink
use util.canCompile instead of just canCompile - fixes 3125
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmck committed Oct 30, 2015
1 parent ca33378 commit 436faf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Babelify.configure = function (opts) {
delete opts.global;

return function (filename) {
if (!babel.canCompile(filename, extensions)) {
if (!babel.util.canCompile(filename, extensions)) {
return stream.PassThrough();
}

Expand Down

0 comments on commit 436faf9

Please sign in to comment.