µmeta
A micro helper for import.meta
data.
; const dirName fileName require =
The dirName
and fileName
respectively represent __dirname
and __filename
, while the require
utility helps importing conditionally, or on demand, CommonJS friendly modules.
import.meta
for CommonJS ?
How to transform There are at least two options: