Skip to content

Commit 605c0e1

Browse files
wip(docs): enhance doc
1 parent 0c7602a commit 605c0e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ function throwNotDefined(details : string) : never {
3939

4040

4141
/**
42-
* Default implementation of PathHandlers
42+
* Default implementation of PathHandlers.
43+
* resolve() should handle 3 situations :
44+
* - resolve a relative path ( eg. import './details.vue' )
45+
* - resolve an absolute path ( eg. import '/components/card.vue' )
46+
* - resolve a module name ( eg. import { format } from 'date-fns' )
4347
*/
4448
const defaultPathHandlers : PathHandlers = {
4549
extname(filepath) {

0 commit comments

Comments
 (0)