@bleedingdev/modern-js-create 3.4.0-ultramodern.16 → 3.4.0-ultramodern.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -124,6 +124,7 @@ function normalizeCompactConfig(workspaceRoot, sourcePath, config) {
|
|
|
124
124
|
role: 'remote' === app.moduleFederation.role ? 'remote' : 'host',
|
|
125
125
|
name: 'string' == typeof app.moduleFederation.name ? app.moduleFederation.name : void 0,
|
|
126
126
|
exposes: Array.isArray(app.moduleFederation.exposes) ? app.moduleFederation.exposes.filter((expose)=>'string' == typeof expose) : void 0,
|
|
127
|
+
exposePaths: null === app.moduleFederation.exposePaths || 'object' != typeof app.moduleFederation.exposePaths || Array.isArray(app.moduleFederation.exposePaths) ? void 0 : Object.fromEntries(Object.entries(app.moduleFederation.exposePaths).filter((entry)=>'string' == typeof entry[0] && 'string' == typeof entry[1])),
|
|
127
128
|
verticalRefs: Array.isArray(app.moduleFederation.verticalRefs) ? app.moduleFederation.verticalRefs.filter((ref)=>'string' == typeof ref) : void 0,
|
|
128
129
|
hostOnly: true === app.moduleFederation.hostOnly,
|
|
129
130
|
noExposes: true === app.moduleFederation.noExposes
|
|
@@ -212,10 +213,15 @@ function workspaceAppsFromToolingConfig(config) {
|
|
|
212
213
|
};
|
|
213
214
|
const domain = app.domain ?? app.id;
|
|
214
215
|
const packageSuffix = app.packageSuffix ?? domain;
|
|
215
|
-
const
|
|
216
|
+
const exposePaths = app.moduleFederation?.exposePaths ?? {};
|
|
217
|
+
const exposes = Object.fromEntries((app.moduleFederation?.exposes ?? []).map((expose)=>{
|
|
218
|
+
const configuredPath = exposePaths[expose];
|
|
219
|
+
const inferredPath = './Route' === expose ? './src/federation-entry.tsx' : './Widget' === expose ? `./src/components/${domain}-widget.tsx` : `./src/components/${(0, naming_cjs_namespaceObject.toKebabCase)(expose.replace(/^\.\//u, ''))}.tsx`;
|
|
220
|
+
return [
|
|
216
221
|
expose,
|
|
217
|
-
|
|
218
|
-
]
|
|
222
|
+
configuredPath ?? inferredPath
|
|
223
|
+
];
|
|
224
|
+
}));
|
|
219
225
|
return {
|
|
220
226
|
id: app.id,
|
|
221
227
|
directory: app.path,
|
|
@@ -80,6 +80,7 @@ function normalizeCompactConfig(workspaceRoot, sourcePath, config) {
|
|
|
80
80
|
role: 'remote' === app.moduleFederation.role ? 'remote' : 'host',
|
|
81
81
|
name: 'string' == typeof app.moduleFederation.name ? app.moduleFederation.name : void 0,
|
|
82
82
|
exposes: Array.isArray(app.moduleFederation.exposes) ? app.moduleFederation.exposes.filter((expose)=>'string' == typeof expose) : void 0,
|
|
83
|
+
exposePaths: null === app.moduleFederation.exposePaths || 'object' != typeof app.moduleFederation.exposePaths || Array.isArray(app.moduleFederation.exposePaths) ? void 0 : Object.fromEntries(Object.entries(app.moduleFederation.exposePaths).filter((entry)=>'string' == typeof entry[0] && 'string' == typeof entry[1])),
|
|
83
84
|
verticalRefs: Array.isArray(app.moduleFederation.verticalRefs) ? app.moduleFederation.verticalRefs.filter((ref)=>'string' == typeof ref) : void 0,
|
|
84
85
|
hostOnly: true === app.moduleFederation.hostOnly,
|
|
85
86
|
noExposes: true === app.moduleFederation.noExposes
|
|
@@ -168,10 +169,15 @@ function workspaceAppsFromToolingConfig(config) {
|
|
|
168
169
|
};
|
|
169
170
|
const domain = app.domain ?? app.id;
|
|
170
171
|
const packageSuffix = app.packageSuffix ?? domain;
|
|
171
|
-
const
|
|
172
|
+
const exposePaths = app.moduleFederation?.exposePaths ?? {};
|
|
173
|
+
const exposes = Object.fromEntries((app.moduleFederation?.exposes ?? []).map((expose)=>{
|
|
174
|
+
const configuredPath = exposePaths[expose];
|
|
175
|
+
const inferredPath = './Route' === expose ? './src/federation-entry.tsx' : './Widget' === expose ? `./src/components/${domain}-widget.tsx` : `./src/components/${toKebabCase(expose.replace(/^\.\//u, ''))}.tsx`;
|
|
176
|
+
return [
|
|
172
177
|
expose,
|
|
173
|
-
|
|
174
|
-
]
|
|
178
|
+
configuredPath ?? inferredPath
|
|
179
|
+
];
|
|
180
|
+
}));
|
|
175
181
|
return {
|
|
176
182
|
id: app.id,
|
|
177
183
|
directory: app.path,
|
|
@@ -81,6 +81,7 @@ function normalizeCompactConfig(workspaceRoot, sourcePath, config) {
|
|
|
81
81
|
role: 'remote' === app.moduleFederation.role ? 'remote' : 'host',
|
|
82
82
|
name: 'string' == typeof app.moduleFederation.name ? app.moduleFederation.name : void 0,
|
|
83
83
|
exposes: Array.isArray(app.moduleFederation.exposes) ? app.moduleFederation.exposes.filter((expose)=>'string' == typeof expose) : void 0,
|
|
84
|
+
exposePaths: null === app.moduleFederation.exposePaths || 'object' != typeof app.moduleFederation.exposePaths || Array.isArray(app.moduleFederation.exposePaths) ? void 0 : Object.fromEntries(Object.entries(app.moduleFederation.exposePaths).filter((entry)=>'string' == typeof entry[0] && 'string' == typeof entry[1])),
|
|
84
85
|
verticalRefs: Array.isArray(app.moduleFederation.verticalRefs) ? app.moduleFederation.verticalRefs.filter((ref)=>'string' == typeof ref) : void 0,
|
|
85
86
|
hostOnly: true === app.moduleFederation.hostOnly,
|
|
86
87
|
noExposes: true === app.moduleFederation.noExposes
|
|
@@ -169,10 +170,15 @@ function workspaceAppsFromToolingConfig(config) {
|
|
|
169
170
|
};
|
|
170
171
|
const domain = app.domain ?? app.id;
|
|
171
172
|
const packageSuffix = app.packageSuffix ?? domain;
|
|
172
|
-
const
|
|
173
|
+
const exposePaths = app.moduleFederation?.exposePaths ?? {};
|
|
174
|
+
const exposes = Object.fromEntries((app.moduleFederation?.exposes ?? []).map((expose)=>{
|
|
175
|
+
const configuredPath = exposePaths[expose];
|
|
176
|
+
const inferredPath = './Route' === expose ? './src/federation-entry.tsx' : './Widget' === expose ? `./src/components/${domain}-widget.tsx` : `./src/components/${toKebabCase(expose.replace(/^\.\//u, ''))}.tsx`;
|
|
177
|
+
return [
|
|
173
178
|
expose,
|
|
174
|
-
|
|
175
|
-
]
|
|
179
|
+
configuredPath ?? inferredPath
|
|
180
|
+
];
|
|
181
|
+
}));
|
|
176
182
|
return {
|
|
177
183
|
id: app.id,
|
|
178
184
|
directory: app.path,
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20"
|
|
23
23
|
},
|
|
24
|
-
"version": "3.4.0-ultramodern.
|
|
24
|
+
"version": "3.4.0-ultramodern.17",
|
|
25
25
|
"types": "./dist/types/index.d.ts",
|
|
26
26
|
"main": "./dist/esm-node/index.js",
|
|
27
27
|
"bin": {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@modern-js/codesmith": "2.6.9",
|
|
78
78
|
"oxfmt": "0.55.0",
|
|
79
79
|
"ultracite": "7.8.3",
|
|
80
|
-
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.4.0-ultramodern.
|
|
80
|
+
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.4.0-ultramodern.17"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@rslib/core": "0.23.0",
|
|
@@ -99,6 +99,6 @@
|
|
|
99
99
|
"test": "rm -rf dist && rslib build -c rslibconfig.mts && rstest --passWithNoTests"
|
|
100
100
|
},
|
|
101
101
|
"ultramodern": {
|
|
102
|
-
"frameworkVersion": "3.4.0-ultramodern.
|
|
102
|
+
"frameworkVersion": "3.4.0-ultramodern.17"
|
|
103
103
|
}
|
|
104
104
|
}
|