獲取當前檔案的目錄
Bun 在 import.meta 物件上提供了一些特定於模組的實用工具。使用 import.meta.dir 獲取包含當前檔案的目錄的絕對路徑。
import.meta.dir; // => "/a/b"
參見 import.meta。
Bun 在 import.meta 物件上提供了一些特定於模組的實用工具。使用 import.meta.dir 獲取包含當前檔案的目錄的絕對路徑。
import.meta.dir; // => "/a/b"
參見 import.meta。