Skip to content

Commit

Permalink
Fix ignored babel files. Closes #393.
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Dec 31, 2017
1 parent 0ebcbc4 commit 22478d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/transforms/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ module.exports = async function(asset) {
}

let res = babel.transformFromAst(asset.ast, asset.contents, config);
asset.ast = res.ast;
asset.isAstDirty = true;
if (!res.ignored) {
asset.ast = res.ast;
asset.isAstDirty = true;
}
};

async function shouldTransform(asset) {
Expand Down

0 comments on commit 22478d3

Please sign in to comment.