@module-federation/dts-plugin
Advanced tools
Comparing version 0.1.9 to 0.1.10
# @module-federation/dts-plugin | ||
## 0.1.10 | ||
### Patch Changes | ||
- 3d4fb69: import path on Windows | ||
- @module-federation/sdk@0.1.10 | ||
- @module-federation/managers@0.1.10 | ||
- @module-federation/third-party-dts-extractor@0.1.10 | ||
## 0.1.9 | ||
@@ -4,0 +13,0 @@ |
@@ -113,3 +113,6 @@ "use strict"; | ||
const mapExposeToEntry = Object.fromEntries( | ||
Object.entries(mapComponentsToExpose).map((entry) => entry.reverse()) | ||
Object.entries(mapComponentsToExpose).map(([exposed, filename]) => [ | ||
(0, import_path.normalize)(filename), | ||
exposed | ||
]) | ||
); | ||
@@ -127,3 +130,3 @@ const mfTypePath = retrieveMfTypesPath(tsConfig, remoteOptions); | ||
for (const sourceFile of sourceFiles || []) { | ||
const sourceEntry = mapExposeToEntry[sourceFile.fileName]; | ||
const sourceEntry = mapExposeToEntry[(0, import_path.normalize)(sourceFile.fileName)]; | ||
if (sourceEntry) { | ||
@@ -135,3 +138,3 @@ const mfeTypeEntry = (0, import_path.join)( | ||
const mfeTypeEntryDirectory = (0, import_path.dirname)(mfeTypeEntry); | ||
const relativePathToOutput = (0, import_path.relative)(mfeTypeEntryDirectory, filepath).replace(DEFINITION_FILE_EXTENSION, "").replace(STARTS_WITH_SLASH, ""); | ||
const relativePathToOutput = (0, import_path.relative)(mfeTypeEntryDirectory, filepath).replace(DEFINITION_FILE_EXTENSION, "").replace(STARTS_WITH_SLASH, "").split(import_path.sep).join("/"); | ||
originalWriteFile( | ||
@@ -1131,3 +1134,3 @@ mfeTypeEntry, | ||
(sum, exposeKey) => { | ||
const exposePath = import_path3.default.join(REMOTE_ALIAS_IDENTIFIER, exposeKey); | ||
const exposePath = import_path3.default.join(REMOTE_ALIAS_IDENTIFIER, exposeKey).split(import_path3.default.sep).join("/"); | ||
exposePaths.add(`'${exposePath}'`); | ||
@@ -1134,0 +1137,0 @@ const curType = `T extends '${exposePath}' ? typeof import('${exposePath}') :`; |
@@ -254,3 +254,6 @@ "use strict"; | ||
const mapExposeToEntry = Object.fromEntries( | ||
Object.entries(mapComponentsToExpose).map((entry) => entry.reverse()) | ||
Object.entries(mapComponentsToExpose).map(([exposed, filename]) => [ | ||
(0, import_path2.normalize)(filename), | ||
exposed | ||
]) | ||
); | ||
@@ -268,3 +271,3 @@ const mfTypePath = retrieveMfTypesPath(tsConfig, remoteOptions); | ||
for (const sourceFile of sourceFiles || []) { | ||
const sourceEntry = mapExposeToEntry[sourceFile.fileName]; | ||
const sourceEntry = mapExposeToEntry[(0, import_path2.normalize)(sourceFile.fileName)]; | ||
if (sourceEntry) { | ||
@@ -276,3 +279,3 @@ const mfeTypeEntry = (0, import_path2.join)( | ||
const mfeTypeEntryDirectory = (0, import_path2.dirname)(mfeTypeEntry); | ||
const relativePathToOutput = (0, import_path2.relative)(mfeTypeEntryDirectory, filepath).replace(DEFINITION_FILE_EXTENSION, "").replace(STARTS_WITH_SLASH, ""); | ||
const relativePathToOutput = (0, import_path2.relative)(mfeTypeEntryDirectory, filepath).replace(DEFINITION_FILE_EXTENSION, "").replace(STARTS_WITH_SLASH, "").split(import_path2.sep).join("/"); | ||
originalWriteFile( | ||
@@ -1270,3 +1273,3 @@ mfeTypeEntry, | ||
(sum, exposeKey) => { | ||
const exposePath = import_path4.default.join(REMOTE_ALIAS_IDENTIFIER, exposeKey); | ||
const exposePath = import_path4.default.join(REMOTE_ALIAS_IDENTIFIER, exposeKey).split(import_path4.default.sep).join("/"); | ||
exposePaths.add(`'${exposePath}'`); | ||
@@ -1273,0 +1276,0 @@ const curType = `T extends '${exposePath}' ? typeof import('${exposePath}') :`; |
{ | ||
"name": "@module-federation/dts-plugin", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"author": "hanric <hanric.zhang@gmail.com>", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
{ | ||
"name": "@module-federation/dts-plugin", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"author": "hanric <hanric.zhang@gmail.com>", | ||
@@ -50,5 +50,5 @@ "main": "./dist/index.js", | ||
"ws": "8.5.0", | ||
"@module-federation/sdk": "0.1.9", | ||
"@module-federation/managers": "0.1.9", | ||
"@module-federation/third-party-dts-extractor": "0.1.9" | ||
"@module-federation/sdk": "0.1.10", | ||
"@module-federation/managers": "0.1.10", | ||
"@module-federation/third-party-dts-extractor": "0.1.10" | ||
}, | ||
@@ -55,0 +55,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
324112
9444
+ Added@module-federation/managers@0.1.10(transitive)
+ Added@module-federation/sdk@0.1.10(transitive)
+ Added@module-federation/third-party-dts-extractor@0.1.10(transitive)
- Removed@module-federation/managers@0.1.9(transitive)
- Removed@module-federation/sdk@0.1.9(transitive)
- Removed@module-federation/third-party-dts-extractor@0.1.9(transitive)