Skip to content

Commit

Permalink
Decrease library size, no more path dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowtime2000 committed Oct 5, 2020
1 parent 8f547ca commit c3d5caa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion dep.ts

This file was deleted.

6 changes: 3 additions & 3 deletions mod/filename.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parse } from "../dep.ts";
import dirname from "./dirname.ts";

export default (meta: ImportMeta): string =>
parse(meta.url).name + parse(meta.url).ext;
// @ts-ignore: Unreachable code error
export default (meta: ImportMeta): string => /[^/\\]*$/.exec(dirname(meta))[0];

0 comments on commit c3d5caa

Please sign in to comment.