@ms-cloudpack/import-map
Advanced tools
Comparing version 0.1.1 to 0.1.2
import { flattenExportsMap } from '@ms-cloudpack/package-utilities'; | ||
import { slash } from '@ms-cloudpack/path-string-parsing'; | ||
import path from 'path'; | ||
@@ -23,3 +24,9 @@ /** | ||
const unbundledFilePath = isExternal ? unbundledExportsMap[importPath] : undefined; | ||
let actualFilePath = unbundledFilePath ? unbundledPrefix + unbundledFilePath : bundledPrefix + bundledFilePath; | ||
let actualFilePath = unbundledFilePath | ||
? unbundledPrefix | ||
? path.join(unbundledPrefix + unbundledFilePath) | ||
: unbundledFilePath | ||
: bundledPrefix | ||
? path.join(bundledPrefix + bundledFilePath) | ||
: bundledFilePath; | ||
const ext = path.extname(actualFilePath); | ||
@@ -40,3 +47,3 @@ // For bundled files: | ||
if (actualFilePath !== undefined) { | ||
result[importPath] = actualFilePath; | ||
result[importPath] = slash(actualFilePath); | ||
} | ||
@@ -43,0 +50,0 @@ } |
{ | ||
"name": "@ms-cloudpack/import-map", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Utilities for creating/updating import maps.", | ||
@@ -17,3 +17,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@ms-cloudpack/package-utilities": "^6.0.0", | ||
"@ms-cloudpack/package-utilities": "^6.0.1", | ||
"@ms-cloudpack/path-string-parsing": "^1.2.1", | ||
"@ms-cloudpack/bundler-types": "^0.25.1", | ||
@@ -20,0 +21,0 @@ "@ms-cloudpack/config-types": "^0.6.0", |
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
38054
304
5