diff --git a/plugin/index.js b/plugin/index.js index 7317ef9..da6c8af 100644 --- a/plugin/index.js +++ b/plugin/index.js @@ -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) {