Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
hunghg255 committed Oct 9, 2023
1 parent 593e506 commit decfe82
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions github-rank
Submodule github-rank added at b97de0
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/loader/js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Options } from 'sucrase';
function lazyJiti(rootDir: string = process.cwd(), option: JITIOptions = {}) {
const split = rootDir.split('/');
const _require = jitiFactory(rootDir, { interopDefault: true, esmResolve: true, ...option });
return _require(`./${split[split.length - 1]}`);
return _require(`${split[split.length - 1]}`);
}

export interface LoadConfOption {
Expand Down

0 comments on commit decfe82

Please sign in to comment.