We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f680f3 commit 8c2a9daCopy full SHA for 8c2a9da
plugin/index.js
@@ -24,8 +24,10 @@ export default function create(babel) {
24
const withoutTilde = path.substring(2, path.length);
25
return `${this.root}/${withoutTilde}`;
26
}
27
-
28
- return '123';
+ if (typeof path === 'string') {
+ return path;
29
+ }
30
+ throw new Error('ERROR: No path passed');
31
32
33
hasTildeInString(string) {
0 commit comments