Skip to content
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

Fix for sourceMapTarget removal in Babel v7.0.0-beta.41 #149

Merged
merged 1 commit into from
Mar 14, 2018
Merged

Conversation

hzoo
Copy link
Member

@hzoo hzoo commented Mar 14, 2018

@hzoo hzoo merged commit 241905b into master Mar 14, 2018
@hzoo hzoo added the bug label Mar 14, 2018
});

const res = babel.transform(file.contents.toString(), fileOpts);

if (res !== null) {
if (file.sourceMap && res.map) {
res.map.file = replaceExtension(res.map.file);
res.map.file = replaceExtension(file.relative);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually a little surprised we even have this line. I wonder if it is actually needed.

@loganfsmyth loganfsmyth deleted the hzoo-patch-1 branch September 5, 2018 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants