@nrwl/angular 13.4.4-beta.4 → 13.4.4
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.
- package/esm2020/src/runtime/nx/data-persistence.mjs +3 -5
- package/fesm2015/nrwl-angular.mjs +2 -4
- package/fesm2015/nrwl-angular.mjs.map +1 -1
- package/fesm2020/nrwl-angular.mjs +2 -4
- package/fesm2020/nrwl-angular.mjs.map +1 -1
- package/migrations.json +6 -0
- package/package.json +6 -6
- package/src/migrations/update-13-5-0/update-mfe-config.test-data.d.ts +20 -0
- package/src/migrations/update-13-5-0/update-mfe-config.test-data.js +718 -0
- package/src/migrations/update-13-5-0/update-mfe-config.test-data.js.map +1 -0
- package/src/migrations/update-13-5-0/update-mfe-configs.d.ts +5 -0
- package/src/migrations/update-13-5-0/update-mfe-configs.js +157 -0
- package/src/migrations/update-13-5-0/update-mfe-configs.js.map +1 -0
- package/src/runtime/nx/data-persistence.js +2 -4
- package/src/runtime/nx/data-persistence.js.map +1 -1
- package/src/utils/versions.js +1 -1
|
@@ -0,0 +1,718 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.remoteEntryModule = exports.optimizationConfig = exports.shareConfig = exports.correctConfig = void 0;
|
|
4
|
+
exports.correctConfig = `const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
5
|
+
const mf = require('@angular-architects/module-federation/webpack');
|
|
6
|
+
const path = require('path');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* We use the NX_TSCONFIG_PATH environment variable when using the @nrwl/angular:webpack-browser
|
|
10
|
+
* builder as it will generate a temporary tsconfig file which contains any required remappings of
|
|
11
|
+
* shared libraries.
|
|
12
|
+
* A remapping will occur when a library is buildable, as webpack needs to know the location of the
|
|
13
|
+
* built files for the buildable library.
|
|
14
|
+
* This NX_TSCONFIG_PATH environment variable is set by the @nrwl/angular:webpack-browser and it contains
|
|
15
|
+
* the location of the generated temporary tsconfig file.
|
|
16
|
+
*/
|
|
17
|
+
const tsConfigPath =
|
|
18
|
+
process.env.NX_TSCONFIG_PATH ??
|
|
19
|
+
path.join(__dirname, '../../tsconfig.base.json');
|
|
20
|
+
|
|
21
|
+
const workspaceRootPath = path.join(__dirname, '../../');
|
|
22
|
+
const sharedMappings = new mf.SharedMappings();
|
|
23
|
+
sharedMappings.register(
|
|
24
|
+
tsConfigPath,
|
|
25
|
+
[
|
|
26
|
+
/* mapped paths to share */
|
|
27
|
+
],
|
|
28
|
+
workspaceRootPath
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
const share = mf.share;
|
|
32
|
+
mf.setInferVersion(true);
|
|
33
|
+
module.exports = {
|
|
34
|
+
output: {
|
|
35
|
+
uniqueName: 'host',
|
|
36
|
+
publicPath: 'auto',
|
|
37
|
+
},
|
|
38
|
+
optimization: {
|
|
39
|
+
runtimeChunk: false,
|
|
40
|
+
},
|
|
41
|
+
experiments: {
|
|
42
|
+
outputModule: true,
|
|
43
|
+
},
|
|
44
|
+
resolve: {
|
|
45
|
+
alias: {
|
|
46
|
+
...sharedMappings.getAliases(),
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
plugins: [
|
|
50
|
+
new ModuleFederationPlugin({
|
|
51
|
+
remotes: {},
|
|
52
|
+
shared: share({
|
|
53
|
+
'@angular/core': {
|
|
54
|
+
singleton: true,
|
|
55
|
+
strictVersion: true,
|
|
56
|
+
requiredVersion: 'auto',
|
|
57
|
+
includeSecondaries: true,
|
|
58
|
+
},
|
|
59
|
+
'@angular/common': {
|
|
60
|
+
singleton: true,
|
|
61
|
+
strictVersion: true,
|
|
62
|
+
requiredVersion: 'auto',
|
|
63
|
+
includeSecondaries: true,
|
|
64
|
+
},
|
|
65
|
+
'@angular/common/http': {
|
|
66
|
+
singleton: true,
|
|
67
|
+
strictVersion: true,
|
|
68
|
+
requiredVersion: 'auto',
|
|
69
|
+
includeSecondaries: true,
|
|
70
|
+
},
|
|
71
|
+
'@angular/router': {
|
|
72
|
+
singleton: true,
|
|
73
|
+
strictVersion: true,
|
|
74
|
+
requiredVersion: 'auto',
|
|
75
|
+
includeSecondaries: true,
|
|
76
|
+
},
|
|
77
|
+
rxjs: {
|
|
78
|
+
singleton: true,
|
|
79
|
+
strictVersion: true,
|
|
80
|
+
requiredVersion: 'auto',
|
|
81
|
+
includeSecondaries: true,
|
|
82
|
+
},
|
|
83
|
+
...sharedMappings.getDescriptors(),
|
|
84
|
+
}),
|
|
85
|
+
library: {
|
|
86
|
+
type: 'module',
|
|
87
|
+
},
|
|
88
|
+
}),
|
|
89
|
+
sharedMappings.getPlugin(),
|
|
90
|
+
],
|
|
91
|
+
};`;
|
|
92
|
+
exports.shareConfig = {
|
|
93
|
+
correct: `const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
94
|
+
const mf = require('@angular-architects/module-federation/webpack');
|
|
95
|
+
const path = require('path');
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* We use the NX_TSCONFIG_PATH environment variable when using the @nrwl/angular:webpack-browser
|
|
99
|
+
* builder as it will generate a temporary tsconfig file which contains any required remappings of
|
|
100
|
+
* shared libraries.
|
|
101
|
+
* A remapping will occur when a library is buildable, as webpack needs to know the location of the
|
|
102
|
+
* built files for the buildable library.
|
|
103
|
+
* This NX_TSCONFIG_PATH environment variable is set by the @nrwl/angular:webpack-browser and it contains
|
|
104
|
+
* the location of the generated temporary tsconfig file.
|
|
105
|
+
*/
|
|
106
|
+
const tsConfigPath =
|
|
107
|
+
process.env.NX_TSCONFIG_PATH ??
|
|
108
|
+
path.join(__dirname, '../../tsconfig.base.json');
|
|
109
|
+
|
|
110
|
+
const workspaceRootPath = path.join(__dirname, '../../');
|
|
111
|
+
const sharedMappings = new mf.SharedMappings();
|
|
112
|
+
sharedMappings.register(
|
|
113
|
+
tsConfigPath,
|
|
114
|
+
[
|
|
115
|
+
/* mapped paths to share */
|
|
116
|
+
],
|
|
117
|
+
workspaceRootPath
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
const share = mf.share;
|
|
121
|
+
mf.setInferVersion(true);
|
|
122
|
+
module.exports = {
|
|
123
|
+
output: {
|
|
124
|
+
uniqueName: 'host',
|
|
125
|
+
publicPath: 'auto',
|
|
126
|
+
},
|
|
127
|
+
optimization: {
|
|
128
|
+
runtimeChunk: false,
|
|
129
|
+
},
|
|
130
|
+
experiments: {
|
|
131
|
+
outputModule: true,
|
|
132
|
+
},
|
|
133
|
+
resolve: {
|
|
134
|
+
alias: {
|
|
135
|
+
...sharedMappings.getAliases(),
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
plugins: [
|
|
139
|
+
new ModuleFederationPlugin({
|
|
140
|
+
remotes: {},
|
|
141
|
+
shared: share({
|
|
142
|
+
'@angular/core': {
|
|
143
|
+
singleton: true,
|
|
144
|
+
strictVersion: true,
|
|
145
|
+
requiredVersion: 'auto',
|
|
146
|
+
includeSecondaries: true,
|
|
147
|
+
},
|
|
148
|
+
'@angular/common': {
|
|
149
|
+
singleton: true,
|
|
150
|
+
strictVersion: true,
|
|
151
|
+
requiredVersion: 'auto',
|
|
152
|
+
includeSecondaries: true,
|
|
153
|
+
},
|
|
154
|
+
'@angular/common/http': {
|
|
155
|
+
singleton: true,
|
|
156
|
+
strictVersion: true,
|
|
157
|
+
requiredVersion: 'auto',
|
|
158
|
+
includeSecondaries: true,
|
|
159
|
+
},
|
|
160
|
+
'@angular/router': {
|
|
161
|
+
singleton: true,
|
|
162
|
+
strictVersion: true,
|
|
163
|
+
requiredVersion: 'auto',
|
|
164
|
+
includeSecondaries: true,
|
|
165
|
+
},
|
|
166
|
+
rxjs: {
|
|
167
|
+
singleton: true,
|
|
168
|
+
strictVersion: true,
|
|
169
|
+
requiredVersion: 'auto',
|
|
170
|
+
includeSecondaries: true,
|
|
171
|
+
},
|
|
172
|
+
...sharedMappings.getDescriptors(),
|
|
173
|
+
}),
|
|
174
|
+
library: {
|
|
175
|
+
type: 'module',
|
|
176
|
+
},
|
|
177
|
+
}),
|
|
178
|
+
sharedMappings.getPlugin(),
|
|
179
|
+
],
|
|
180
|
+
};`,
|
|
181
|
+
incorrect: `const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
182
|
+
const mf = require('@angular-architects/module-federation/webpack');
|
|
183
|
+
const path = require('path');
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* We use the NX_TSCONFIG_PATH environment variable when using the @nrwl/angular:webpack-browser
|
|
187
|
+
* builder as it will generate a temporary tsconfig file which contains any required remappings of
|
|
188
|
+
* shared libraries.
|
|
189
|
+
* A remapping will occur when a library is buildable, as webpack needs to know the location of the
|
|
190
|
+
* built files for the buildable library.
|
|
191
|
+
* This NX_TSCONFIG_PATH environment variable is set by the @nrwl/angular:webpack-browser and it contains
|
|
192
|
+
* the location of the generated temporary tsconfig file.
|
|
193
|
+
*/
|
|
194
|
+
const tsConfigPath =
|
|
195
|
+
process.env.NX_TSCONFIG_PATH ??
|
|
196
|
+
path.join(__dirname, '../../tsconfig.base.json');
|
|
197
|
+
|
|
198
|
+
const workspaceRootPath = path.join(__dirname, '../../');
|
|
199
|
+
const sharedMappings = new mf.SharedMappings();
|
|
200
|
+
sharedMappings.register(
|
|
201
|
+
tsConfigPath,
|
|
202
|
+
[
|
|
203
|
+
/* mapped paths to share */
|
|
204
|
+
],
|
|
205
|
+
workspaceRootPath
|
|
206
|
+
);
|
|
207
|
+
|
|
208
|
+
module.exports = {
|
|
209
|
+
output: {
|
|
210
|
+
uniqueName: 'host',
|
|
211
|
+
publicPath: 'auto',
|
|
212
|
+
},
|
|
213
|
+
optimization: {
|
|
214
|
+
runtimeChunk: false,
|
|
215
|
+
},
|
|
216
|
+
experiments: {
|
|
217
|
+
outputModule: true,
|
|
218
|
+
},
|
|
219
|
+
resolve: {
|
|
220
|
+
alias: {
|
|
221
|
+
...sharedMappings.getAliases(),
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
plugins: [
|
|
225
|
+
new ModuleFederationPlugin({
|
|
226
|
+
remotes: {},
|
|
227
|
+
shared: {
|
|
228
|
+
'@angular/core': {
|
|
229
|
+
singleton: true,
|
|
230
|
+
strictVersion: true,
|
|
231
|
+
requiredVersion: 'auto',
|
|
232
|
+
includeSecondaries: true,
|
|
233
|
+
},
|
|
234
|
+
'@angular/common': {
|
|
235
|
+
singleton: true,
|
|
236
|
+
strictVersion: true,
|
|
237
|
+
requiredVersion: 'auto',
|
|
238
|
+
includeSecondaries: true,
|
|
239
|
+
},
|
|
240
|
+
'@angular/common/http': {
|
|
241
|
+
singleton: true,
|
|
242
|
+
strictVersion: true,
|
|
243
|
+
requiredVersion: 'auto',
|
|
244
|
+
includeSecondaries: true,
|
|
245
|
+
},
|
|
246
|
+
'@angular/router': {
|
|
247
|
+
singleton: true,
|
|
248
|
+
strictVersion: true,
|
|
249
|
+
requiredVersion: 'auto',
|
|
250
|
+
includeSecondaries: true,
|
|
251
|
+
},
|
|
252
|
+
rxjs: {
|
|
253
|
+
singleton: true,
|
|
254
|
+
strictVersion: true,
|
|
255
|
+
requiredVersion: 'auto',
|
|
256
|
+
includeSecondaries: true,
|
|
257
|
+
},
|
|
258
|
+
...sharedMappings.getDescriptors(),
|
|
259
|
+
},
|
|
260
|
+
library: {
|
|
261
|
+
type: 'module',
|
|
262
|
+
},
|
|
263
|
+
}),
|
|
264
|
+
sharedMappings.getPlugin(),
|
|
265
|
+
],
|
|
266
|
+
};`,
|
|
267
|
+
};
|
|
268
|
+
exports.optimizationConfig = {
|
|
269
|
+
correct: `const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
270
|
+
const mf = require('@angular-architects/module-federation/webpack');
|
|
271
|
+
const path = require('path');
|
|
272
|
+
const share = mf.share;
|
|
273
|
+
mf.setInferVersion(true);
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* We use the NX_TSCONFIG_PATH environment variable when using the @nrwl/angular:webpack-browser
|
|
277
|
+
* builder as it will generate a temporary tsconfig file which contains any required remappings of
|
|
278
|
+
* shared libraries.
|
|
279
|
+
* A remapping will occur when a library is buildable, as webpack needs to know the location of the
|
|
280
|
+
* built files for the buildable library.
|
|
281
|
+
* This NX_TSCONFIG_PATH environment variable is set by the @nrwl/angular:webpack-browser and it contains
|
|
282
|
+
* the location of the generated temporary tsconfig file.
|
|
283
|
+
*/
|
|
284
|
+
const tsConfigPath =
|
|
285
|
+
process.env.NX_TSCONFIG_PATH ??
|
|
286
|
+
path.join(__dirname, '../../tsconfig.base.json');
|
|
287
|
+
|
|
288
|
+
const workspaceRootPath = path.join(__dirname, '../../');
|
|
289
|
+
const sharedMappings = new mf.SharedMappings();
|
|
290
|
+
sharedMappings.register(
|
|
291
|
+
tsConfigPath,
|
|
292
|
+
[
|
|
293
|
+
/* mapped paths to share */
|
|
294
|
+
],
|
|
295
|
+
workspaceRootPath
|
|
296
|
+
);
|
|
297
|
+
|
|
298
|
+
module.exports = {
|
|
299
|
+
output: {
|
|
300
|
+
uniqueName: 'host',
|
|
301
|
+
publicPath: 'auto',
|
|
302
|
+
},
|
|
303
|
+
optimization: {
|
|
304
|
+
minimize: true,
|
|
305
|
+
runtimeChunk: false,
|
|
306
|
+
},
|
|
307
|
+
experiments: {
|
|
308
|
+
outputModule: true,
|
|
309
|
+
},
|
|
310
|
+
resolve: {
|
|
311
|
+
alias: {
|
|
312
|
+
...sharedMappings.getAliases(),
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
plugins: [
|
|
316
|
+
new ModuleFederationPlugin({
|
|
317
|
+
remotes: {},
|
|
318
|
+
shared: share({
|
|
319
|
+
'@angular/core': {
|
|
320
|
+
singleton: true,
|
|
321
|
+
strictVersion: true,
|
|
322
|
+
requiredVersion: 'auto',
|
|
323
|
+
includeSecondaries: true,
|
|
324
|
+
},
|
|
325
|
+
'@angular/common': {
|
|
326
|
+
singleton: true,
|
|
327
|
+
strictVersion: true,
|
|
328
|
+
requiredVersion: 'auto',
|
|
329
|
+
includeSecondaries: true,
|
|
330
|
+
},
|
|
331
|
+
'@angular/common/http': {
|
|
332
|
+
singleton: true,
|
|
333
|
+
strictVersion: true,
|
|
334
|
+
requiredVersion: 'auto',
|
|
335
|
+
includeSecondaries: true,
|
|
336
|
+
},
|
|
337
|
+
'@angular/router': {
|
|
338
|
+
singleton: true,
|
|
339
|
+
strictVersion: true,
|
|
340
|
+
requiredVersion: 'auto',
|
|
341
|
+
includeSecondaries: true,
|
|
342
|
+
},
|
|
343
|
+
rxjs: {
|
|
344
|
+
singleton: true,
|
|
345
|
+
strictVersion: true,
|
|
346
|
+
requiredVersion: 'auto',
|
|
347
|
+
includeSecondaries: true,
|
|
348
|
+
},
|
|
349
|
+
...sharedMappings.getDescriptors(),
|
|
350
|
+
}),
|
|
351
|
+
library: {
|
|
352
|
+
type: 'module',
|
|
353
|
+
},
|
|
354
|
+
}),
|
|
355
|
+
sharedMappings.getPlugin(),
|
|
356
|
+
],
|
|
357
|
+
};`,
|
|
358
|
+
incorrectMissing: `const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
359
|
+
const mf = require('@angular-architects/module-federation/webpack');
|
|
360
|
+
const path = require('path');
|
|
361
|
+
const share = mf.share;
|
|
362
|
+
mf.setInferVersion(true);
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* We use the NX_TSCONFIG_PATH environment variable when using the @nrwl/angular:webpack-browser
|
|
366
|
+
* builder as it will generate a temporary tsconfig file which contains any required remappings of
|
|
367
|
+
* shared libraries.
|
|
368
|
+
* A remapping will occur when a library is buildable, as webpack needs to know the location of the
|
|
369
|
+
* built files for the buildable library.
|
|
370
|
+
* This NX_TSCONFIG_PATH environment variable is set by the @nrwl/angular:webpack-browser and it contains
|
|
371
|
+
* the location of the generated temporary tsconfig file.
|
|
372
|
+
*/
|
|
373
|
+
const tsConfigPath =
|
|
374
|
+
process.env.NX_TSCONFIG_PATH ??
|
|
375
|
+
path.join(__dirname, '../../tsconfig.base.json');
|
|
376
|
+
|
|
377
|
+
const workspaceRootPath = path.join(__dirname, '../../');
|
|
378
|
+
const sharedMappings = new mf.SharedMappings();
|
|
379
|
+
sharedMappings.register(
|
|
380
|
+
tsConfigPath,
|
|
381
|
+
[
|
|
382
|
+
/* mapped paths to share */
|
|
383
|
+
],
|
|
384
|
+
workspaceRootPath
|
|
385
|
+
);
|
|
386
|
+
|
|
387
|
+
module.exports = {
|
|
388
|
+
output: {
|
|
389
|
+
uniqueName: 'host',
|
|
390
|
+
publicPath: 'auto',
|
|
391
|
+
},
|
|
392
|
+
optimization: {
|
|
393
|
+
runtimeChunk: false,
|
|
394
|
+
},
|
|
395
|
+
experiments: {
|
|
396
|
+
outputModule: true,
|
|
397
|
+
},
|
|
398
|
+
resolve: {
|
|
399
|
+
alias: {
|
|
400
|
+
...sharedMappings.getAliases(),
|
|
401
|
+
},
|
|
402
|
+
},
|
|
403
|
+
plugins: [
|
|
404
|
+
new ModuleFederationPlugin({
|
|
405
|
+
remotes: {},
|
|
406
|
+
shared: share({
|
|
407
|
+
'@angular/core': {
|
|
408
|
+
singleton: true,
|
|
409
|
+
strictVersion: true,
|
|
410
|
+
requiredVersion: 'auto',
|
|
411
|
+
includeSecondaries: true,
|
|
412
|
+
},
|
|
413
|
+
'@angular/common': {
|
|
414
|
+
singleton: true,
|
|
415
|
+
strictVersion: true,
|
|
416
|
+
requiredVersion: 'auto',
|
|
417
|
+
includeSecondaries: true,
|
|
418
|
+
},
|
|
419
|
+
'@angular/common/http': {
|
|
420
|
+
singleton: true,
|
|
421
|
+
strictVersion: true,
|
|
422
|
+
requiredVersion: 'auto',
|
|
423
|
+
includeSecondaries: true,
|
|
424
|
+
},
|
|
425
|
+
'@angular/router': {
|
|
426
|
+
singleton: true,
|
|
427
|
+
strictVersion: true,
|
|
428
|
+
requiredVersion: 'auto',
|
|
429
|
+
includeSecondaries: true,
|
|
430
|
+
},
|
|
431
|
+
rxjs: {
|
|
432
|
+
singleton: true,
|
|
433
|
+
strictVersion: true,
|
|
434
|
+
requiredVersion: 'auto',
|
|
435
|
+
includeSecondaries: true,
|
|
436
|
+
},
|
|
437
|
+
...sharedMappings.getDescriptors(),
|
|
438
|
+
}),
|
|
439
|
+
library: {
|
|
440
|
+
type: 'module',
|
|
441
|
+
},
|
|
442
|
+
}),
|
|
443
|
+
sharedMappings.getPlugin(),
|
|
444
|
+
],
|
|
445
|
+
};`,
|
|
446
|
+
incorrectFalse: `const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
|
|
447
|
+
const mf = require('@angular-architects/module-federation/webpack');
|
|
448
|
+
const path = require('path');
|
|
449
|
+
const share = mf.share;
|
|
450
|
+
mf.setInferVersion(true);
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* We use the NX_TSCONFIG_PATH environment variable when using the @nrwl/angular:webpack-browser
|
|
454
|
+
* builder as it will generate a temporary tsconfig file which contains any required remappings of
|
|
455
|
+
* shared libraries.
|
|
456
|
+
* A remapping will occur when a library is buildable, as webpack needs to know the location of the
|
|
457
|
+
* built files for the buildable library.
|
|
458
|
+
* This NX_TSCONFIG_PATH environment variable is set by the @nrwl/angular:webpack-browser and it contains
|
|
459
|
+
* the location of the generated temporary tsconfig file.
|
|
460
|
+
*/
|
|
461
|
+
const tsConfigPath =
|
|
462
|
+
process.env.NX_TSCONFIG_PATH ??
|
|
463
|
+
path.join(__dirname, '../../tsconfig.base.json');
|
|
464
|
+
|
|
465
|
+
const workspaceRootPath = path.join(__dirname, '../../');
|
|
466
|
+
const sharedMappings = new mf.SharedMappings();
|
|
467
|
+
sharedMappings.register(
|
|
468
|
+
tsConfigPath,
|
|
469
|
+
[
|
|
470
|
+
/* mapped paths to share */
|
|
471
|
+
],
|
|
472
|
+
workspaceRootPath
|
|
473
|
+
);
|
|
474
|
+
|
|
475
|
+
module.exports = {
|
|
476
|
+
output: {
|
|
477
|
+
uniqueName: 'host',
|
|
478
|
+
publicPath: 'auto',
|
|
479
|
+
},
|
|
480
|
+
optimization: {
|
|
481
|
+
minimize: false,
|
|
482
|
+
runtimeChunk: false,
|
|
483
|
+
},
|
|
484
|
+
experiments: {
|
|
485
|
+
outputModule: true,
|
|
486
|
+
},
|
|
487
|
+
resolve: {
|
|
488
|
+
alias: {
|
|
489
|
+
...sharedMappings.getAliases(),
|
|
490
|
+
},
|
|
491
|
+
},
|
|
492
|
+
plugins: [
|
|
493
|
+
new ModuleFederationPlugin({
|
|
494
|
+
remotes: {},
|
|
495
|
+
shared: share({
|
|
496
|
+
'@angular/core': {
|
|
497
|
+
singleton: true,
|
|
498
|
+
strictVersion: true,
|
|
499
|
+
requiredVersion: 'auto',
|
|
500
|
+
includeSecondaries: true,
|
|
501
|
+
},
|
|
502
|
+
'@angular/common': {
|
|
503
|
+
singleton: true,
|
|
504
|
+
strictVersion: true,
|
|
505
|
+
requiredVersion: 'auto',
|
|
506
|
+
includeSecondaries: true,
|
|
507
|
+
},
|
|
508
|
+
'@angular/common/http': {
|
|
509
|
+
singleton: true,
|
|
510
|
+
strictVersion: true,
|
|
511
|
+
requiredVersion: 'auto',
|
|
512
|
+
includeSecondaries: true,
|
|
513
|
+
},
|
|
514
|
+
'@angular/router': {
|
|
515
|
+
singleton: true,
|
|
516
|
+
strictVersion: true,
|
|
517
|
+
requiredVersion: 'auto',
|
|
518
|
+
includeSecondaries: true,
|
|
519
|
+
},
|
|
520
|
+
rxjs: {
|
|
521
|
+
singleton: true,
|
|
522
|
+
strictVersion: true,
|
|
523
|
+
requiredVersion: 'auto',
|
|
524
|
+
includeSecondaries: true,
|
|
525
|
+
},
|
|
526
|
+
...sharedMappings.getDescriptors(),
|
|
527
|
+
}),
|
|
528
|
+
library: {
|
|
529
|
+
type: 'module',
|
|
530
|
+
},
|
|
531
|
+
}),
|
|
532
|
+
sharedMappings.getPlugin(),
|
|
533
|
+
],
|
|
534
|
+
};`,
|
|
535
|
+
};
|
|
536
|
+
exports.remoteEntryModule = {
|
|
537
|
+
correct: `import { NgModule } from '@angular/core';
|
|
538
|
+
import { CommonModule } from '@angular/common';
|
|
539
|
+
import { RouterModule } from '@angular/router';
|
|
540
|
+
|
|
541
|
+
import { RemoteEntryComponent } from './entry.component';
|
|
542
|
+
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
543
|
+
|
|
544
|
+
@NgModule({
|
|
545
|
+
declarations: [RemoteEntryComponent],
|
|
546
|
+
imports: [
|
|
547
|
+
FeatLoginModule,
|
|
548
|
+
CommonModule,
|
|
549
|
+
RouterModule.forChild([
|
|
550
|
+
{
|
|
551
|
+
path: '',
|
|
552
|
+
component: RemoteEntryComponent,
|
|
553
|
+
},
|
|
554
|
+
]),
|
|
555
|
+
],
|
|
556
|
+
providers: [],
|
|
557
|
+
})
|
|
558
|
+
export class RemoteEntryModule {}`,
|
|
559
|
+
noBrowserOrCommonModule: `import { NgModule } from '@angular/core';
|
|
560
|
+
import { RouterModule } from '@angular/router';
|
|
561
|
+
|
|
562
|
+
import { RemoteEntryComponent } from './entry.component';
|
|
563
|
+
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
564
|
+
|
|
565
|
+
@NgModule({
|
|
566
|
+
declarations: [RemoteEntryComponent],
|
|
567
|
+
imports: [
|
|
568
|
+
FeatLoginModule,
|
|
569
|
+
RouterModule.forChild([
|
|
570
|
+
{
|
|
571
|
+
path: '',
|
|
572
|
+
component: RemoteEntryComponent,
|
|
573
|
+
},
|
|
574
|
+
]),
|
|
575
|
+
],
|
|
576
|
+
providers: [],
|
|
577
|
+
})
|
|
578
|
+
export class RemoteEntryModule {}`,
|
|
579
|
+
correctWithNoBrowserOrCommonModule: `import { CommonModule } from '@angular/common';
|
|
580
|
+
import { NgModule } from '@angular/core';
|
|
581
|
+
import { RouterModule } from '@angular/router';
|
|
582
|
+
|
|
583
|
+
import { RemoteEntryComponent } from './entry.component';
|
|
584
|
+
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
585
|
+
|
|
586
|
+
@NgModule({
|
|
587
|
+
declarations: [RemoteEntryComponent],
|
|
588
|
+
imports: [
|
|
589
|
+
CommonModule,
|
|
590
|
+
FeatLoginModule,
|
|
591
|
+
RouterModule.forChild([
|
|
592
|
+
{
|
|
593
|
+
path: '',
|
|
594
|
+
component: RemoteEntryComponent,
|
|
595
|
+
},
|
|
596
|
+
]),
|
|
597
|
+
],
|
|
598
|
+
providers: [],
|
|
599
|
+
})
|
|
600
|
+
export class RemoteEntryModule {}`,
|
|
601
|
+
onlyBrowserModule: `import { NgModule } from '@angular/core';
|
|
602
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
603
|
+
import { RouterModule } from '@angular/router';
|
|
604
|
+
|
|
605
|
+
import { RemoteEntryComponent } from './entry.component';
|
|
606
|
+
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
607
|
+
|
|
608
|
+
@NgModule({
|
|
609
|
+
declarations: [RemoteEntryComponent],
|
|
610
|
+
imports: [
|
|
611
|
+
FeatLoginModule,
|
|
612
|
+
BrowserModule,
|
|
613
|
+
RouterModule.forChild([
|
|
614
|
+
{
|
|
615
|
+
path: '',
|
|
616
|
+
component: RemoteEntryComponent,
|
|
617
|
+
},
|
|
618
|
+
]),
|
|
619
|
+
],
|
|
620
|
+
providers: [],
|
|
621
|
+
})
|
|
622
|
+
export class RemoteEntryModule {}`,
|
|
623
|
+
browserModuleWithCommonImportedInFile: `import { CommonModule } from '@angular/common';
|
|
624
|
+
import { NgModule } from '@angular/core';
|
|
625
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
626
|
+
import { RouterModule } from '@angular/router';
|
|
627
|
+
|
|
628
|
+
import { RemoteEntryComponent } from './entry.component';
|
|
629
|
+
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
630
|
+
|
|
631
|
+
@NgModule({
|
|
632
|
+
declarations: [RemoteEntryComponent],
|
|
633
|
+
imports: [
|
|
634
|
+
FeatLoginModule,
|
|
635
|
+
BrowserModule,
|
|
636
|
+
RouterModule.forChild([
|
|
637
|
+
{
|
|
638
|
+
path: '',
|
|
639
|
+
component: RemoteEntryComponent,
|
|
640
|
+
},
|
|
641
|
+
]),
|
|
642
|
+
],
|
|
643
|
+
providers: [],
|
|
644
|
+
})
|
|
645
|
+
export class RemoteEntryModule {}`,
|
|
646
|
+
browserModuleWithCommonImportedInArray: `import { CommonModule } from '@angular/common';
|
|
647
|
+
import { NgModule } from '@angular/core';
|
|
648
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
649
|
+
import { RouterModule } from '@angular/router';
|
|
650
|
+
|
|
651
|
+
import { RemoteEntryComponent } from './entry.component';
|
|
652
|
+
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
653
|
+
|
|
654
|
+
@NgModule({
|
|
655
|
+
declarations: [RemoteEntryComponent],
|
|
656
|
+
imports: [
|
|
657
|
+
FeatLoginModule,
|
|
658
|
+
CommonModule,
|
|
659
|
+
BrowserModule,
|
|
660
|
+
RouterModule.forChild([
|
|
661
|
+
{
|
|
662
|
+
path: '',
|
|
663
|
+
component: RemoteEntryComponent,
|
|
664
|
+
},
|
|
665
|
+
]),
|
|
666
|
+
],
|
|
667
|
+
providers: [],
|
|
668
|
+
})
|
|
669
|
+
export class RemoteEntryModule {}`,
|
|
670
|
+
correctBrowserModuleWithCommonImportedInArray: `import { CommonModule } from '@angular/common';
|
|
671
|
+
import { NgModule } from '@angular/core';
|
|
672
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
673
|
+
import { RouterModule } from '@angular/router';
|
|
674
|
+
|
|
675
|
+
import { RemoteEntryComponent } from './entry.component';
|
|
676
|
+
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
677
|
+
|
|
678
|
+
@NgModule({
|
|
679
|
+
declarations: [RemoteEntryComponent],
|
|
680
|
+
imports: [
|
|
681
|
+
FeatLoginModule,
|
|
682
|
+
CommonModule,
|
|
683
|
+
|
|
684
|
+
RouterModule.forChild([
|
|
685
|
+
{
|
|
686
|
+
path: '',
|
|
687
|
+
component: RemoteEntryComponent,
|
|
688
|
+
},
|
|
689
|
+
]),
|
|
690
|
+
],
|
|
691
|
+
providers: [],
|
|
692
|
+
})
|
|
693
|
+
export class RemoteEntryModule {}`,
|
|
694
|
+
correctBrowserModuleWithCommonImportedInFile: `import { CommonModule } from '@angular/common';
|
|
695
|
+
import { NgModule } from '@angular/core';
|
|
696
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
697
|
+
import { RouterModule } from '@angular/router';
|
|
698
|
+
|
|
699
|
+
import { RemoteEntryComponent } from './entry.component';
|
|
700
|
+
import { FeatLoginModule } from '@mfe-netlify/feat-login';
|
|
701
|
+
|
|
702
|
+
@NgModule({
|
|
703
|
+
declarations: [RemoteEntryComponent],
|
|
704
|
+
imports: [
|
|
705
|
+
FeatLoginModule,
|
|
706
|
+
CommonModule,
|
|
707
|
+
RouterModule.forChild([
|
|
708
|
+
{
|
|
709
|
+
path: '',
|
|
710
|
+
component: RemoteEntryComponent,
|
|
711
|
+
},
|
|
712
|
+
]),
|
|
713
|
+
],
|
|
714
|
+
providers: [],
|
|
715
|
+
})
|
|
716
|
+
export class RemoteEntryModule {}`,
|
|
717
|
+
};
|
|
718
|
+
//# sourceMappingURL=update-mfe-config.test-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-mfe-config.test-data.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/migrations/update-13-5-0/update-mfe-config.test-data.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuF1B,CAAC;AAES,QAAA,WAAW,GAAG;IACzB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFR;IACD,SAAS,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFV;CACF,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwFN;IACH,gBAAgB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuFf;IACH,cAAc,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwFb;CACJ,CAAC;AAEW,QAAA,iBAAiB,GAAG;IAC/B,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;oCAqByB;IAClC,uBAAuB,EAAE;;;;;;;;;;;;;;;;;;;oCAmBS;IAClC,kCAAkC,EAAE;;;;;;;;;;;;;;;;;;;;;oCAqBF;IAClC,iBAAiB,EAAE;;;;;;;;;;;;;;;;;;;;;oCAqBe;IAClC,qCAAqC,EAAE;;;;;;;;;;;;;;;;;;;;;;oCAsBL;IAClC,sCAAsC,EAAE;;;;;;;;;;;;;;;;;;;;;;;oCAuBN;IAClC,6CAA6C,EAAE;;;;;;;;;;;;;;;;;;;;;;;oCAuBb;IAClC,4CAA4C,EAAE;;;;;;;;;;;;;;;;;;;;;;oCAsBZ;CACnC,CAAC"}
|