介面:ImportMap

ImportMap

成員

imports :Object.<string, string>

單一、無範圍的模組規格說明符地圖。

類型
  • Object.<string, string>

moduleRootDir :string

選用目錄,指定匯入地圖中相對路徑的根目錄(若需要)。

例如,如果您僅使用解析為絕對目標的匯入路徑,例如「my-pkg」:「https://mycdn.url/my-pkg」,則您不需要此 dir 選項。但是,如果您需要參照資料夾,例如 node_modules,則需要此選項。

moduleRootDir 會針對專案基本目錄進行評估,這通常是執行 jasmine-browser-runner 的目前工作目錄。

類型
  • 字串
範例
'node_modules'

scopes :Object.<string, Object.<string, string>>

一個或多個範圍內模組規格說明符的地圖。

類型
  • Object.<string, Object.<string, string>>