Skip to content

Commit

Permalink
feat: expose the context
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jul 5, 2022
1 parent 9e089b9 commit d8d1ea7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class TreeLeaf {
}

/**
* Adds a path to the tree
* Adds a path to the tree. `path` cannot start with a `/`.
*
* @param path - route path of the file
* @param filePath - file path, defaults to path for convenience and testing
Expand Down
4 changes: 2 additions & 2 deletions src/core/treeLeafValue.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RouteMeta, RouteRecordName } from 'vue-router'
import { joinPath, trimExtension } from './utils'
import { RouteMeta } from 'vue-router'
import { joinPath } from './utils'

export const enum TreeLeafType {
static,
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default createUnplugin<Options>((opt, meta) => {
}
})

export { createRoutesContext }
export { getFileBasedRouteName, getPascalCaseRouteName } from './core/utils'

export type {
Expand Down

0 comments on commit d8d1ea7

Please sign in to comment.