描述匯入地圖。
成員
imports :Object.<string, string>
單一、未設定範圍的模組規格符號圖。
類型
- Object.<string, string>
moduleRootDir :string
設定匯入地圖中相對路徑之根目錄的選用目錄(如果需要)。
例如,如果您只使用解析為絕對目標的匯入路徑,例如:「my-pkg」:「https://mycdn.url/my-pkg」,則不需要這個 dir 選項。但是如果您需要參照資料夾,例如 node_modules
,則此為必填。
moduleRootDir 依據專案基本目錄評估,其通常為執行動 jasmine-browser-runner 的目前工作目錄。
類型
- string
範例
'node_modules'
scopes :Object.<string, Object.<string, string>>
一個或多個有設定範圍之模組規格符號圖。
類型
- Object.<string, Object.<string, string>>