module/add-paths
core-api
function
boot.janet on line 2907, column 1
(module/add-paths ext loader)
Add paths to `module/paths` for a given loader such that the
generated paths behave like other module types, including relative
imports and syspath imports. `ext` is the file extension to
associate with this module type, including the dot. `loader` is the
keyword name of a loader in `module/loaders`. The parameter
`match-exact-path` will allow users to import files with this
extension directly with a relative or absolute path. Returns the
modified `module/paths`.