Load from file URL
FranklinYu opened this issue · comments
Franklin Yu commented
In CommonJS we have __dirname
. In ES modules we use import.meta.url
instead, which is a file:
URL. It would be great if serveFolder
also works with file URL.
The related source should be
Lines 159 to 161 in 2c76e87
I can PR if that is preferred.