Skip to content

Commit

Permalink
fix: use const instead of var
Browse files Browse the repository at this point in the history
  • Loading branch information
vanishcode committed Nov 18, 2021
1 parent 3153e16 commit 7aa3bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export const stripInlineSourceMap = function (str: string) {
};

export const loadSrc = (src: string, filePath: string) => {
var dir = path.dirname(filePath);
var srcPath = path.resolve(dir, src);
const dir = path.dirname(filePath);
const srcPath = path.resolve(dir, src);
try {
return fs.readFileSync(srcPath, 'utf-8');
} catch (e) {
Expand Down

0 comments on commit 7aa3bd0

Please sign in to comment.