Closed Machy8 closed 2 years ago
It is, because the esbuild
doesn't allow import.meta.url
in the generated file when the output format is cjs
. Therefore there needs to be two checks, if the __dirname
exists
__dirname
and not the import.meta.url
import.meta.url
and convertor from url to file to simulate the __dirname
dir.
Codecov Report
Continue to review full report at Codecov.