@ms-cloudpack/import-map
Advanced tools
Comparing version 0.2.9 to 0.3.0
@@ -59,2 +59,3 @@ import { getRuntimeEntryPaths } from './getRuntimeEntryPaths.js'; | ||
const entryPaths = getRuntimeEntryPaths({ | ||
packagePath: entry.path, | ||
isExternal, | ||
@@ -61,0 +62,0 @@ exportsMap, |
@@ -12,2 +12,3 @@ import type { PackageJsonExports } from '@ms-cloudpack/common-types'; | ||
export declare function getRuntimeEntryPaths(params: { | ||
packagePath: string; | ||
/** Exports map for a package */ | ||
@@ -14,0 +15,0 @@ exportsMap: PackageJsonExports; |
@@ -14,3 +14,3 @@ import { flattenExportsMap } from '@ms-cloudpack/package-utilities'; | ||
export function getRuntimeEntryPaths(params) { | ||
const { exportsMap, isExternal, bundledPrefix = '', unbundledPrefix = '' } = params; | ||
const { packagePath, exportsMap, isExternal, bundledPrefix = '', unbundledPrefix = '' } = params; | ||
const result = {}; | ||
@@ -21,4 +21,5 @@ // Get both the unbundled and bundled entries from the exports map | ||
requiredConditions: ['browser-esm'], | ||
packagePath, | ||
}); | ||
const bundledExportsMap = flattenExportsMap(exportsMap); | ||
const bundledExportsMap = flattenExportsMap(exportsMap, { packagePath }); | ||
for (const [importPath, bundledFilePath] of Object.entries(bundledExportsMap)) { | ||
@@ -25,0 +26,0 @@ const unbundledFilePath = isExternal ? unbundledExportsMap[importPath] : undefined; |
{ | ||
"name": "@ms-cloudpack/import-map", | ||
"version": "0.2.9", | ||
"version": "0.3.0", | ||
"description": "Utilities for creating/updating import maps.", | ||
@@ -18,3 +18,3 @@ "license": "MIT", | ||
"@ms-cloudpack/common-types": "^0.3.0", | ||
"@ms-cloudpack/package-utilities": "^7.2.1", | ||
"@ms-cloudpack/package-utilities": "^7.3.0", | ||
"@ms-cloudpack/path-string-parsing": "^1.2.1", | ||
@@ -21,0 +21,0 @@ "merge": "^2.1.1" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38190
306