Skip to content

Bun 在 import.meta 對象上提供了一些模塊特定的工具函數。使用 import.meta.file 獲取當前文件的文件名。

ts
import.meta.file; // => "c.ts"

請參閱 文檔 > API > import.meta 獲取完整文檔。

Bun學習網由www.bunjs.com.cn整理維護