Browse Source

Make failing test pass

gh-384
Oskar Segersvärd 9 years ago
parent
commit
f05bc8293f
  1. 4
      src/utils/transform.js

4
src/utils/transform.js

@ -25,6 +25,10 @@ export default function transform ( source, id, transformers ) {
map: null map: null
}; };
} }
// `result.map` can only be a string if `result` isn't
else if ( typeof result.map === 'string' ) {
result.map = JSON.parse( result.map );
}
sourceMapChain.push( result.map ); sourceMapChain.push( result.map );
ast = result.ast; ast = result.ast;

Loading…
Cancel
Save