packagesDirHandler function
A handler that serves virtual packages/
directories wherever they're
requested.
This serves the same assets as packagesHandler for every URL that contains
/packages/
. Otherwise, it returns 404s for all requests.
This is useful for ensuring that package:
imports work for all entrypoints
in Dartium.
Implementation
Handler packagesDirHandler({Map<String, Uri>? packageMap}) =>
DirHandler('packages', packagesHandler(packageMap: packageMap));