-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
B7 alpha #112
Conversation
test.js
Outdated
@@ -108,7 +108,7 @@ it('should list used helpers in file.babel', function (cb) { | |||
|
|||
it('should not rename ignored files', function (cb) { | |||
var stream = babel({ | |||
ignore: /fixture/ | |||
ignore: [/fixture/] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaking change in babel-core was requiring ignore to be an array
res.map.file = replaceExtension(res.map.file); | ||
applySourceMap(file, res.map); | ||
} | ||
if (res !== null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaking change is that ignored files return null
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, some user may want to access code
of null.
index.js
Outdated
@@ -26,7 +25,7 @@ module.exports = function (opts) { | |||
} | |||
|
|||
try { | |||
var fileOpts = objectAssign({}, opts, { | |||
var fileOpts = Object.assign({}, opts, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dropping node 0.10/0.12 so removing this for native
file.contents = new Buffer(res.code); | ||
file.path = replaceExtension(file.path); | ||
} | ||
if (!res.ignored) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this if
since the null
check does this now.
I guess also v7.0.0-alpha.3?