Variable: $filename
ts
const $filename: string = "$filename";Current source file name.
Replaced with a compile-time literal by the macros plugin. At runtime it is a stub, since a shared module cannot know the importing file.