Skip to content

Commit

Permalink
fix: changed to string packages
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Feb 21, 2021
1 parent a57be42 commit b79e697
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/Hello.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const Hello = () => {
return <div>Hello</div>;
};
4 changes: 2 additions & 2 deletions src/modules/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const resolveDependency = (dir: string, name: string) => {
try {
const stat = fs.statSync(dependencyPath);
if (stat && stat.isDirectory()) {
return require(dependencyPath);
return dependencyPath;
}
} catch (ex) {}
return require(name);
return name;
};

/**
Expand Down

0 comments on commit b79e697

Please sign in to comment.