Skip to content

Commit

Permalink
Handle new cases in transformRelativeToRootPath method
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelzoidl committed Aug 7, 2015
1 parent 4f680f3 commit 8c2a9da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ export default function create(babel) {
const withoutTilde = path.substring(2, path.length);
return `${this.root}/${withoutTilde}`;
}

return '123';
if (typeof path === 'string') {
return path;
}
throw new Error('ERROR: No path passed');
}

hasTildeInString(string) {
Expand Down

0 comments on commit 8c2a9da

Please sign in to comment.