獲取當前檔案的檔名
Bun 在 import.meta 物件上提供了一些模組特定的實用工具。使用 import.meta.file 可以獲取當前檔案的檔名。
import.meta.file; // => "c.ts"
參見 import.meta。
Bun 在 import.meta 物件上提供了一些模組特定的實用工具。使用 import.meta.file 可以獲取當前檔案的檔名。
import.meta.file; // => "c.ts"
參見 import.meta。