@module-federation/storybook-addon 0.1.0 → 1.0.0
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/CHANGELOG.md +1071 -0
- package/README.md +2 -2
- package/package.json +13 -12
- package/src/index.js +15 -2
- package/src/index.js.map +1 -1
- package/src/lib/storybook-addon.d.ts +1 -1
- package/src/lib/storybook-addon.js +49 -9
- package/src/lib/storybook-addon.js.map +1 -1
- package/src/utils/with-module-federation.d.ts +1 -1
- package/src/utils/with-module-federation.js +2 -14
- package/src/utils/with-module-federation.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,1077 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
# 1.0.0 (2023-08-14)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `utils` updated to version `2.0.7`
|
|
10
|
+
* `utils` updated to version `2.0.7`
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* add release tooling to storybook addon ([43c66bb](https://github.com/module-federation/nextjs-mf/commit/43c66bbc10af8198e908d35ffde7b7dc0058f9cb))
|
|
15
|
+
* add release tooling to storybook addon ([#817](https://github.com/module-federation/nextjs-mf/issues/817)) ([63d27a8](https://github.com/module-federation/nextjs-mf/commit/63d27a8067a0734d04677948b50454b6704dc387))
|
|
16
|
+
* ignore ts error ([86bb46b](https://github.com/module-federation/nextjs-mf/commit/86bb46b0a77617c28d5294c3cc5e266b9360eb65))
|
|
17
|
+
* **storybook-addon:** update src path also for stories from v7 ([#1206](https://github.com/module-federation/nextjs-mf/issues/1206)) ([8af9066](https://github.com/module-federation/nextjs-mf/commit/8af906648c3abf8d9a344fec9153b54a02ad3e53)), closes [#1195](https://github.com/module-federation/nextjs-mf/issues/1195)
|
|
18
|
+
* workaround to self ref module error in prod ([#1205](https://github.com/module-federation/nextjs-mf/issues/1205)) ([1d88beb](https://github.com/module-federation/nextjs-mf/commit/1d88beb0da629f036e132573fee9f05494b1f540))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* add storybook addon that supports Module Federation remote containers ([#598](https://github.com/module-federation/nextjs-mf/issues/598)) ([7547b02](https://github.com/module-federation/nextjs-mf/commit/7547b02937fdef2831060d6a7bfd337d2cc3355c))
|
|
24
|
+
* Next Federation 7 ([#726](https://github.com/module-federation/nextjs-mf/issues/726)) ([d50ca1e](https://github.com/module-federation/nextjs-mf/commit/d50ca1e4636c4e0a402190f6e9c3f69ed9ec8eac)), closes [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#835](https://github.com/module-federation/nextjs-mf/issues/835) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#871](https://github.com/module-federation/nextjs-mf/issues/871) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#872](https://github.com/module-federation/nextjs-mf/issues/872) [#875](https://github.com/module-federation/nextjs-mf/issues/875) [#884](https://github.com/module-federation/nextjs-mf/issues/884) [#887](https://github.com/module-federation/nextjs-mf/issues/887) [#893](https://github.com/module-federation/nextjs-mf/issues/893) [#885](https://github.com/module-federation/nextjs-mf/issues/885) [#899](https://github.com/module-federation/nextjs-mf/issues/899) [#904](https://github.com/module-federation/nextjs-mf/issues/904) [#932](https://github.com/module-federation/nextjs-mf/issues/932) [#936](https://github.com/module-federation/nextjs-mf/issues/936) [#959](https://github.com/module-federation/nextjs-mf/issues/959) [#960](https://github.com/module-federation/nextjs-mf/issues/960) [#969](https://github.com/module-federation/nextjs-mf/issues/969) [#971](https://github.com/module-federation/nextjs-mf/issues/971) [#974](https://github.com/module-federation/nextjs-mf/issues/974) [#984](https://github.com/module-federation/nextjs-mf/issues/984) [#986](https://github.com/module-federation/nextjs-mf/issues/986) [#1015](https://github.com/module-federation/nextjs-mf/issues/1015) [#1086](https://github.com/module-federation/nextjs-mf/issues/1086) [#1084](https://github.com/module-federation/nextjs-mf/issues/1084)
|
|
25
|
+
* **storybook-addon:** upgrade nx and refactor util `withModuleFederation` ([#829](https://github.com/module-federation/nextjs-mf/issues/829)) ([5eeab46](https://github.com/module-federation/nextjs-mf/commit/5eeab46861fa1e444b772cdd15ba5472414e5dd8))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### BREAKING CHANGES
|
|
29
|
+
|
|
30
|
+
* automaticAsyncBoundary option has been removed
|
|
31
|
+
|
|
32
|
+
* fix: exclude specific pages from page map automatically
|
|
33
|
+
|
|
34
|
+
* refactor: conslidate codebase
|
|
35
|
+
|
|
36
|
+
* fix: improve hot reload share recovery
|
|
37
|
+
|
|
38
|
+
* refactor: remove server jsonp template
|
|
39
|
+
|
|
40
|
+
* chore: remove dead code from runtime modules
|
|
41
|
+
|
|
42
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
43
|
+
|
|
44
|
+
getting chunk loading global from compiler output options
|
|
45
|
+
|
|
46
|
+
* feat: adding cleanInitArrays runtime helper
|
|
47
|
+
|
|
48
|
+
* chore: remove share scope hoist and module hoisting system
|
|
49
|
+
|
|
50
|
+
* chore: cleanup code
|
|
51
|
+
|
|
52
|
+
* chore: remove dead code from add module runtime plugin
|
|
53
|
+
|
|
54
|
+
likely can remove whole plugin in future
|
|
55
|
+
|
|
56
|
+
* chore: remove logs from delegate modules
|
|
57
|
+
|
|
58
|
+
* chore: remove old utils
|
|
59
|
+
|
|
60
|
+
* fix: add warning on auto page stitch
|
|
61
|
+
|
|
62
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
63
|
+
|
|
64
|
+
* chore: improve logging to see if its local load or remote load
|
|
65
|
+
|
|
66
|
+
* chore: clean up old custom promises factories
|
|
67
|
+
|
|
68
|
+
* fix: remove container proxy code
|
|
69
|
+
|
|
70
|
+
* fix: remove container proxy code
|
|
71
|
+
* automaticAsyncBoundary option has been removed
|
|
72
|
+
|
|
73
|
+
* fix: exclude specific pages from page map automatically
|
|
74
|
+
|
|
75
|
+
* refactor: conslidate codebase
|
|
76
|
+
|
|
77
|
+
* fix: improve hot reload share recovery
|
|
78
|
+
|
|
79
|
+
* refactor: remove server jsonp template
|
|
80
|
+
|
|
81
|
+
* chore: remove dead code from runtime modules
|
|
82
|
+
|
|
83
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
84
|
+
|
|
85
|
+
getting chunk loading global from compiler output options
|
|
86
|
+
|
|
87
|
+
* feat: adding cleanInitArrays runtime helper
|
|
88
|
+
|
|
89
|
+
* chore: remove share scope hoist and module hoisting system
|
|
90
|
+
|
|
91
|
+
* chore: cleanup code
|
|
92
|
+
|
|
93
|
+
* chore: remove dead code from add module runtime plugin
|
|
94
|
+
|
|
95
|
+
likely can remove whole plugin in future
|
|
96
|
+
|
|
97
|
+
* chore: remove logs from delegate modules
|
|
98
|
+
|
|
99
|
+
* chore: remove old utils
|
|
100
|
+
|
|
101
|
+
* fix: add warning on auto page stitch
|
|
102
|
+
|
|
103
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
104
|
+
|
|
105
|
+
* chore: improve logging to see if its local load or remote load
|
|
106
|
+
|
|
107
|
+
* chore: clean up old custom promises factories
|
|
108
|
+
|
|
109
|
+
* fix: remove container proxy code
|
|
110
|
+
|
|
111
|
+
* fix: remove container proxy code
|
|
112
|
+
|
|
113
|
+
* chore: fix project.json
|
|
114
|
+
|
|
115
|
+
* debugging
|
|
116
|
+
|
|
117
|
+
* fix: resolve backmerge issues with build
|
|
118
|
+
|
|
119
|
+
* Merge branch 'kill_child_compilers' into fix_backmerge_issues
|
|
120
|
+
|
|
121
|
+
# Conflicts:
|
|
122
|
+
# package-lock.json
|
|
123
|
+
# package.json
|
|
124
|
+
# packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
|
|
125
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
|
|
126
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
|
|
127
|
+
|
|
128
|
+
* feat: enable eager sharing
|
|
129
|
+
|
|
130
|
+
* refactor: improve module hooks for eager loading and search
|
|
131
|
+
|
|
132
|
+
* refactor: cleanup custom jsonp and make es5
|
|
133
|
+
|
|
134
|
+
* refactor: cleanup inverted container code
|
|
135
|
+
|
|
136
|
+
* refactor: cleanup inverted container code
|
|
137
|
+
* automaticAsyncBoundary option has been removed
|
|
138
|
+
|
|
139
|
+
* fix: exclude specific pages from page map automatically
|
|
140
|
+
|
|
141
|
+
* refactor: conslidate codebase
|
|
142
|
+
|
|
143
|
+
* fix: improve hot reload share recovery
|
|
144
|
+
|
|
145
|
+
* refactor: remove server jsonp template
|
|
146
|
+
|
|
147
|
+
* chore: remove dead code from runtime modules
|
|
148
|
+
|
|
149
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
150
|
+
|
|
151
|
+
getting chunk loading global from compiler output options
|
|
152
|
+
|
|
153
|
+
* feat: adding cleanInitArrays runtime helper
|
|
154
|
+
|
|
155
|
+
* chore: remove share scope hoist and module hoisting system
|
|
156
|
+
|
|
157
|
+
* chore: cleanup code
|
|
158
|
+
|
|
159
|
+
* chore: remove dead code from add module runtime plugin
|
|
160
|
+
|
|
161
|
+
likely can remove whole plugin in future
|
|
162
|
+
|
|
163
|
+
* chore: remove logs from delegate modules
|
|
164
|
+
|
|
165
|
+
* chore: remove old utils
|
|
166
|
+
|
|
167
|
+
* fix: add warning on auto page stitch
|
|
168
|
+
|
|
169
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
170
|
+
|
|
171
|
+
* chore: improve logging to see if its local load or remote load
|
|
172
|
+
|
|
173
|
+
* chore: clean up old custom promises factories
|
|
174
|
+
|
|
175
|
+
* fix: remove container proxy code
|
|
176
|
+
|
|
177
|
+
* fix: remove container proxy code
|
|
178
|
+
|
|
179
|
+
* fix: resolve backmerge issues with build
|
|
180
|
+
|
|
181
|
+
* Merge branch 'kill_child_compilers' into fix_backmerge_issues
|
|
182
|
+
|
|
183
|
+
# Conflicts:
|
|
184
|
+
# package-lock.json
|
|
185
|
+
# package.json
|
|
186
|
+
# packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
|
|
187
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
|
|
188
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
|
|
189
|
+
|
|
190
|
+
* feat: enable eager sharing
|
|
191
|
+
|
|
192
|
+
* refactor: improve module hooks for eager loading and search
|
|
193
|
+
|
|
194
|
+
* refactor: cleanup custom jsonp and make es5
|
|
195
|
+
|
|
196
|
+
* refactor: cleanup inverted container code
|
|
197
|
+
|
|
198
|
+
* refactor: cleanup inverted container code
|
|
199
|
+
|
|
200
|
+
* ci: fix install step with npm and NX
|
|
201
|
+
|
|
202
|
+
* test: remove tests for now
|
|
203
|
+
|
|
204
|
+
* chore(utils): release version 1.7.3-beta.0
|
|
205
|
+
|
|
206
|
+
* chore(utils): release version 1.7.3
|
|
207
|
+
|
|
208
|
+
* chore(node): release version 0.14.4-beta.0
|
|
209
|
+
|
|
210
|
+
* chore(node): release version 0.14.4
|
|
211
|
+
|
|
212
|
+
* chore(nextjs-mf): release version 6.4.1-beta.4
|
|
213
|
+
|
|
214
|
+
* fix: remove debugging runtime variable
|
|
215
|
+
|
|
216
|
+
* chore(nextjs-mf): release version 6.4.1-beta.5
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
# [1.0.0](https://github.com/module-federation/nextjs-mf/compare/storybook-addon-0.2.0...storybook-addon-1.0.0) (2023-08-14)
|
|
221
|
+
|
|
222
|
+
### Dependency Updates
|
|
223
|
+
|
|
224
|
+
* `utils` updated to version `2.0.7`
|
|
225
|
+
* `utils` updated to version `2.0.7`
|
|
226
|
+
|
|
227
|
+
### Bug Fixes
|
|
228
|
+
|
|
229
|
+
* ignore ts error ([86bb46b](https://github.com/module-federation/nextjs-mf/commit/86bb46b0a77617c28d5294c3cc5e266b9360eb65))
|
|
230
|
+
* **storybook-addon:** update src path also for stories from v7 ([#1206](https://github.com/module-federation/nextjs-mf/issues/1206)) ([8af9066](https://github.com/module-federation/nextjs-mf/commit/8af906648c3abf8d9a344fec9153b54a02ad3e53)), closes [#1195](https://github.com/module-federation/nextjs-mf/issues/1195)
|
|
231
|
+
* workaround to self ref module error in prod ([#1205](https://github.com/module-federation/nextjs-mf/issues/1205)) ([1d88beb](https://github.com/module-federation/nextjs-mf/commit/1d88beb0da629f036e132573fee9f05494b1f540))
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### Features
|
|
235
|
+
|
|
236
|
+
* Next Federation 7 ([#726](https://github.com/module-federation/nextjs-mf/issues/726)) ([d50ca1e](https://github.com/module-federation/nextjs-mf/commit/d50ca1e4636c4e0a402190f6e9c3f69ed9ec8eac)), closes [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#835](https://github.com/module-federation/nextjs-mf/issues/835) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#871](https://github.com/module-federation/nextjs-mf/issues/871) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#872](https://github.com/module-federation/nextjs-mf/issues/872) [#875](https://github.com/module-federation/nextjs-mf/issues/875) [#884](https://github.com/module-federation/nextjs-mf/issues/884) [#887](https://github.com/module-federation/nextjs-mf/issues/887) [#893](https://github.com/module-federation/nextjs-mf/issues/893) [#885](https://github.com/module-federation/nextjs-mf/issues/885) [#899](https://github.com/module-federation/nextjs-mf/issues/899) [#904](https://github.com/module-federation/nextjs-mf/issues/904) [#932](https://github.com/module-federation/nextjs-mf/issues/932) [#936](https://github.com/module-federation/nextjs-mf/issues/936) [#959](https://github.com/module-federation/nextjs-mf/issues/959) [#960](https://github.com/module-federation/nextjs-mf/issues/960) [#969](https://github.com/module-federation/nextjs-mf/issues/969) [#971](https://github.com/module-federation/nextjs-mf/issues/971) [#974](https://github.com/module-federation/nextjs-mf/issues/974) [#984](https://github.com/module-federation/nextjs-mf/issues/984) [#986](https://github.com/module-federation/nextjs-mf/issues/986) [#1015](https://github.com/module-federation/nextjs-mf/issues/1015) [#1086](https://github.com/module-federation/nextjs-mf/issues/1086) [#1084](https://github.com/module-federation/nextjs-mf/issues/1084)
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
### BREAKING CHANGES
|
|
240
|
+
|
|
241
|
+
* automaticAsyncBoundary option has been removed
|
|
242
|
+
|
|
243
|
+
* fix: exclude specific pages from page map automatically
|
|
244
|
+
|
|
245
|
+
* refactor: conslidate codebase
|
|
246
|
+
|
|
247
|
+
* fix: improve hot reload share recovery
|
|
248
|
+
|
|
249
|
+
* refactor: remove server jsonp template
|
|
250
|
+
|
|
251
|
+
* chore: remove dead code from runtime modules
|
|
252
|
+
|
|
253
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
254
|
+
|
|
255
|
+
getting chunk loading global from compiler output options
|
|
256
|
+
|
|
257
|
+
* feat: adding cleanInitArrays runtime helper
|
|
258
|
+
|
|
259
|
+
* chore: remove share scope hoist and module hoisting system
|
|
260
|
+
|
|
261
|
+
* chore: cleanup code
|
|
262
|
+
|
|
263
|
+
* chore: remove dead code from add module runtime plugin
|
|
264
|
+
|
|
265
|
+
likely can remove whole plugin in future
|
|
266
|
+
|
|
267
|
+
* chore: remove logs from delegate modules
|
|
268
|
+
|
|
269
|
+
* chore: remove old utils
|
|
270
|
+
|
|
271
|
+
* fix: add warning on auto page stitch
|
|
272
|
+
|
|
273
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
274
|
+
|
|
275
|
+
* chore: improve logging to see if its local load or remote load
|
|
276
|
+
|
|
277
|
+
* chore: clean up old custom promises factories
|
|
278
|
+
|
|
279
|
+
* fix: remove container proxy code
|
|
280
|
+
|
|
281
|
+
* fix: remove container proxy code
|
|
282
|
+
* automaticAsyncBoundary option has been removed
|
|
283
|
+
|
|
284
|
+
* fix: exclude specific pages from page map automatically
|
|
285
|
+
|
|
286
|
+
* refactor: conslidate codebase
|
|
287
|
+
|
|
288
|
+
* fix: improve hot reload share recovery
|
|
289
|
+
|
|
290
|
+
* refactor: remove server jsonp template
|
|
291
|
+
|
|
292
|
+
* chore: remove dead code from runtime modules
|
|
293
|
+
|
|
294
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
295
|
+
|
|
296
|
+
getting chunk loading global from compiler output options
|
|
297
|
+
|
|
298
|
+
* feat: adding cleanInitArrays runtime helper
|
|
299
|
+
|
|
300
|
+
* chore: remove share scope hoist and module hoisting system
|
|
301
|
+
|
|
302
|
+
* chore: cleanup code
|
|
303
|
+
|
|
304
|
+
* chore: remove dead code from add module runtime plugin
|
|
305
|
+
|
|
306
|
+
likely can remove whole plugin in future
|
|
307
|
+
|
|
308
|
+
* chore: remove logs from delegate modules
|
|
309
|
+
|
|
310
|
+
* chore: remove old utils
|
|
311
|
+
|
|
312
|
+
* fix: add warning on auto page stitch
|
|
313
|
+
|
|
314
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
315
|
+
|
|
316
|
+
* chore: improve logging to see if its local load or remote load
|
|
317
|
+
|
|
318
|
+
* chore: clean up old custom promises factories
|
|
319
|
+
|
|
320
|
+
* fix: remove container proxy code
|
|
321
|
+
|
|
322
|
+
* fix: remove container proxy code
|
|
323
|
+
|
|
324
|
+
* chore: fix project.json
|
|
325
|
+
|
|
326
|
+
* debugging
|
|
327
|
+
|
|
328
|
+
* fix: resolve backmerge issues with build
|
|
329
|
+
|
|
330
|
+
* Merge branch 'kill_child_compilers' into fix_backmerge_issues
|
|
331
|
+
|
|
332
|
+
# Conflicts:
|
|
333
|
+
# package-lock.json
|
|
334
|
+
# package.json
|
|
335
|
+
# packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
|
|
336
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
|
|
337
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
|
|
338
|
+
|
|
339
|
+
* feat: enable eager sharing
|
|
340
|
+
|
|
341
|
+
* refactor: improve module hooks for eager loading and search
|
|
342
|
+
|
|
343
|
+
* refactor: cleanup custom jsonp and make es5
|
|
344
|
+
|
|
345
|
+
* refactor: cleanup inverted container code
|
|
346
|
+
|
|
347
|
+
* refactor: cleanup inverted container code
|
|
348
|
+
* automaticAsyncBoundary option has been removed
|
|
349
|
+
|
|
350
|
+
* fix: exclude specific pages from page map automatically
|
|
351
|
+
|
|
352
|
+
* refactor: conslidate codebase
|
|
353
|
+
|
|
354
|
+
* fix: improve hot reload share recovery
|
|
355
|
+
|
|
356
|
+
* refactor: remove server jsonp template
|
|
357
|
+
|
|
358
|
+
* chore: remove dead code from runtime modules
|
|
359
|
+
|
|
360
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
361
|
+
|
|
362
|
+
getting chunk loading global from compiler output options
|
|
363
|
+
|
|
364
|
+
* feat: adding cleanInitArrays runtime helper
|
|
365
|
+
|
|
366
|
+
* chore: remove share scope hoist and module hoisting system
|
|
367
|
+
|
|
368
|
+
* chore: cleanup code
|
|
369
|
+
|
|
370
|
+
* chore: remove dead code from add module runtime plugin
|
|
371
|
+
|
|
372
|
+
likely can remove whole plugin in future
|
|
373
|
+
|
|
374
|
+
* chore: remove logs from delegate modules
|
|
375
|
+
|
|
376
|
+
* chore: remove old utils
|
|
377
|
+
|
|
378
|
+
* fix: add warning on auto page stitch
|
|
379
|
+
|
|
380
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
381
|
+
|
|
382
|
+
* chore: improve logging to see if its local load or remote load
|
|
383
|
+
|
|
384
|
+
* chore: clean up old custom promises factories
|
|
385
|
+
|
|
386
|
+
* fix: remove container proxy code
|
|
387
|
+
|
|
388
|
+
* fix: remove container proxy code
|
|
389
|
+
|
|
390
|
+
* fix: resolve backmerge issues with build
|
|
391
|
+
|
|
392
|
+
* Merge branch 'kill_child_compilers' into fix_backmerge_issues
|
|
393
|
+
|
|
394
|
+
# Conflicts:
|
|
395
|
+
# package-lock.json
|
|
396
|
+
# package.json
|
|
397
|
+
# packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
|
|
398
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
|
|
399
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
|
|
400
|
+
|
|
401
|
+
* feat: enable eager sharing
|
|
402
|
+
|
|
403
|
+
* refactor: improve module hooks for eager loading and search
|
|
404
|
+
|
|
405
|
+
* refactor: cleanup custom jsonp and make es5
|
|
406
|
+
|
|
407
|
+
* refactor: cleanup inverted container code
|
|
408
|
+
|
|
409
|
+
* refactor: cleanup inverted container code
|
|
410
|
+
|
|
411
|
+
* ci: fix install step with npm and NX
|
|
412
|
+
|
|
413
|
+
* test: remove tests for now
|
|
414
|
+
|
|
415
|
+
* chore(utils): release version 1.7.3-beta.0
|
|
416
|
+
|
|
417
|
+
* chore(utils): release version 1.7.3
|
|
418
|
+
|
|
419
|
+
* chore(node): release version 0.14.4-beta.0
|
|
420
|
+
|
|
421
|
+
* chore(node): release version 0.14.4
|
|
422
|
+
|
|
423
|
+
* chore(nextjs-mf): release version 6.4.1-beta.4
|
|
424
|
+
|
|
425
|
+
* fix: remove debugging runtime variable
|
|
426
|
+
|
|
427
|
+
* chore(nextjs-mf): release version 6.4.1-beta.5
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
# [1.0.0](https://github.com/module-federation/nextjs-mf/compare/storybook-addon-0.2.0...storybook-addon-1.0.0) (2023-08-14)
|
|
432
|
+
|
|
433
|
+
### Dependency Updates
|
|
434
|
+
|
|
435
|
+
* `utils` updated to version `2.0.7`
|
|
436
|
+
* `utils` updated to version `2.0.7`
|
|
437
|
+
|
|
438
|
+
### Bug Fixes
|
|
439
|
+
|
|
440
|
+
* ignore ts error ([86bb46b](https://github.com/module-federation/nextjs-mf/commit/86bb46b0a77617c28d5294c3cc5e266b9360eb65))
|
|
441
|
+
* **storybook-addon:** update src path also for stories from v7 ([#1206](https://github.com/module-federation/nextjs-mf/issues/1206)) ([8af9066](https://github.com/module-federation/nextjs-mf/commit/8af906648c3abf8d9a344fec9153b54a02ad3e53)), closes [#1195](https://github.com/module-federation/nextjs-mf/issues/1195)
|
|
442
|
+
* workaround to self ref module error in prod ([#1205](https://github.com/module-federation/nextjs-mf/issues/1205)) ([1d88beb](https://github.com/module-federation/nextjs-mf/commit/1d88beb0da629f036e132573fee9f05494b1f540))
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
### Features
|
|
446
|
+
|
|
447
|
+
* Next Federation 7 ([#726](https://github.com/module-federation/nextjs-mf/issues/726)) ([d50ca1e](https://github.com/module-federation/nextjs-mf/commit/d50ca1e4636c4e0a402190f6e9c3f69ed9ec8eac)), closes [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#835](https://github.com/module-federation/nextjs-mf/issues/835) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#871](https://github.com/module-federation/nextjs-mf/issues/871) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#872](https://github.com/module-federation/nextjs-mf/issues/872) [#875](https://github.com/module-federation/nextjs-mf/issues/875) [#884](https://github.com/module-federation/nextjs-mf/issues/884) [#887](https://github.com/module-federation/nextjs-mf/issues/887) [#893](https://github.com/module-federation/nextjs-mf/issues/893) [#885](https://github.com/module-federation/nextjs-mf/issues/885) [#899](https://github.com/module-federation/nextjs-mf/issues/899) [#904](https://github.com/module-federation/nextjs-mf/issues/904) [#932](https://github.com/module-federation/nextjs-mf/issues/932) [#936](https://github.com/module-federation/nextjs-mf/issues/936) [#959](https://github.com/module-federation/nextjs-mf/issues/959) [#960](https://github.com/module-federation/nextjs-mf/issues/960) [#969](https://github.com/module-federation/nextjs-mf/issues/969) [#971](https://github.com/module-federation/nextjs-mf/issues/971) [#974](https://github.com/module-federation/nextjs-mf/issues/974) [#984](https://github.com/module-federation/nextjs-mf/issues/984) [#986](https://github.com/module-federation/nextjs-mf/issues/986) [#1015](https://github.com/module-federation/nextjs-mf/issues/1015) [#1086](https://github.com/module-federation/nextjs-mf/issues/1086) [#1084](https://github.com/module-federation/nextjs-mf/issues/1084)
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
### BREAKING CHANGES
|
|
451
|
+
|
|
452
|
+
* automaticAsyncBoundary option has been removed
|
|
453
|
+
|
|
454
|
+
* fix: exclude specific pages from page map automatically
|
|
455
|
+
|
|
456
|
+
* refactor: conslidate codebase
|
|
457
|
+
|
|
458
|
+
* fix: improve hot reload share recovery
|
|
459
|
+
|
|
460
|
+
* refactor: remove server jsonp template
|
|
461
|
+
|
|
462
|
+
* chore: remove dead code from runtime modules
|
|
463
|
+
|
|
464
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
465
|
+
|
|
466
|
+
getting chunk loading global from compiler output options
|
|
467
|
+
|
|
468
|
+
* feat: adding cleanInitArrays runtime helper
|
|
469
|
+
|
|
470
|
+
* chore: remove share scope hoist and module hoisting system
|
|
471
|
+
|
|
472
|
+
* chore: cleanup code
|
|
473
|
+
|
|
474
|
+
* chore: remove dead code from add module runtime plugin
|
|
475
|
+
|
|
476
|
+
likely can remove whole plugin in future
|
|
477
|
+
|
|
478
|
+
* chore: remove logs from delegate modules
|
|
479
|
+
|
|
480
|
+
* chore: remove old utils
|
|
481
|
+
|
|
482
|
+
* fix: add warning on auto page stitch
|
|
483
|
+
|
|
484
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
485
|
+
|
|
486
|
+
* chore: improve logging to see if its local load or remote load
|
|
487
|
+
|
|
488
|
+
* chore: clean up old custom promises factories
|
|
489
|
+
|
|
490
|
+
* fix: remove container proxy code
|
|
491
|
+
|
|
492
|
+
* fix: remove container proxy code
|
|
493
|
+
* automaticAsyncBoundary option has been removed
|
|
494
|
+
|
|
495
|
+
* fix: exclude specific pages from page map automatically
|
|
496
|
+
|
|
497
|
+
* refactor: conslidate codebase
|
|
498
|
+
|
|
499
|
+
* fix: improve hot reload share recovery
|
|
500
|
+
|
|
501
|
+
* refactor: remove server jsonp template
|
|
502
|
+
|
|
503
|
+
* chore: remove dead code from runtime modules
|
|
504
|
+
|
|
505
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
506
|
+
|
|
507
|
+
getting chunk loading global from compiler output options
|
|
508
|
+
|
|
509
|
+
* feat: adding cleanInitArrays runtime helper
|
|
510
|
+
|
|
511
|
+
* chore: remove share scope hoist and module hoisting system
|
|
512
|
+
|
|
513
|
+
* chore: cleanup code
|
|
514
|
+
|
|
515
|
+
* chore: remove dead code from add module runtime plugin
|
|
516
|
+
|
|
517
|
+
likely can remove whole plugin in future
|
|
518
|
+
|
|
519
|
+
* chore: remove logs from delegate modules
|
|
520
|
+
|
|
521
|
+
* chore: remove old utils
|
|
522
|
+
|
|
523
|
+
* fix: add warning on auto page stitch
|
|
524
|
+
|
|
525
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
526
|
+
|
|
527
|
+
* chore: improve logging to see if its local load or remote load
|
|
528
|
+
|
|
529
|
+
* chore: clean up old custom promises factories
|
|
530
|
+
|
|
531
|
+
* fix: remove container proxy code
|
|
532
|
+
|
|
533
|
+
* fix: remove container proxy code
|
|
534
|
+
|
|
535
|
+
* chore: fix project.json
|
|
536
|
+
|
|
537
|
+
* debugging
|
|
538
|
+
|
|
539
|
+
* fix: resolve backmerge issues with build
|
|
540
|
+
|
|
541
|
+
* Merge branch 'kill_child_compilers' into fix_backmerge_issues
|
|
542
|
+
|
|
543
|
+
# Conflicts:
|
|
544
|
+
# package-lock.json
|
|
545
|
+
# package.json
|
|
546
|
+
# packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
|
|
547
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
|
|
548
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
|
|
549
|
+
|
|
550
|
+
* feat: enable eager sharing
|
|
551
|
+
|
|
552
|
+
* refactor: improve module hooks for eager loading and search
|
|
553
|
+
|
|
554
|
+
* refactor: cleanup custom jsonp and make es5
|
|
555
|
+
|
|
556
|
+
* refactor: cleanup inverted container code
|
|
557
|
+
|
|
558
|
+
* refactor: cleanup inverted container code
|
|
559
|
+
* automaticAsyncBoundary option has been removed
|
|
560
|
+
|
|
561
|
+
* fix: exclude specific pages from page map automatically
|
|
562
|
+
|
|
563
|
+
* refactor: conslidate codebase
|
|
564
|
+
|
|
565
|
+
* fix: improve hot reload share recovery
|
|
566
|
+
|
|
567
|
+
* refactor: remove server jsonp template
|
|
568
|
+
|
|
569
|
+
* chore: remove dead code from runtime modules
|
|
570
|
+
|
|
571
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
572
|
+
|
|
573
|
+
getting chunk loading global from compiler output options
|
|
574
|
+
|
|
575
|
+
* feat: adding cleanInitArrays runtime helper
|
|
576
|
+
|
|
577
|
+
* chore: remove share scope hoist and module hoisting system
|
|
578
|
+
|
|
579
|
+
* chore: cleanup code
|
|
580
|
+
|
|
581
|
+
* chore: remove dead code from add module runtime plugin
|
|
582
|
+
|
|
583
|
+
likely can remove whole plugin in future
|
|
584
|
+
|
|
585
|
+
* chore: remove logs from delegate modules
|
|
586
|
+
|
|
587
|
+
* chore: remove old utils
|
|
588
|
+
|
|
589
|
+
* fix: add warning on auto page stitch
|
|
590
|
+
|
|
591
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
592
|
+
|
|
593
|
+
* chore: improve logging to see if its local load or remote load
|
|
594
|
+
|
|
595
|
+
* chore: clean up old custom promises factories
|
|
596
|
+
|
|
597
|
+
* fix: remove container proxy code
|
|
598
|
+
|
|
599
|
+
* fix: remove container proxy code
|
|
600
|
+
|
|
601
|
+
* fix: resolve backmerge issues with build
|
|
602
|
+
|
|
603
|
+
* Merge branch 'kill_child_compilers' into fix_backmerge_issues
|
|
604
|
+
|
|
605
|
+
# Conflicts:
|
|
606
|
+
# package-lock.json
|
|
607
|
+
# package.json
|
|
608
|
+
# packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
|
|
609
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
|
|
610
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
|
|
611
|
+
|
|
612
|
+
* feat: enable eager sharing
|
|
613
|
+
|
|
614
|
+
* refactor: improve module hooks for eager loading and search
|
|
615
|
+
|
|
616
|
+
* refactor: cleanup custom jsonp and make es5
|
|
617
|
+
|
|
618
|
+
* refactor: cleanup inverted container code
|
|
619
|
+
|
|
620
|
+
* refactor: cleanup inverted container code
|
|
621
|
+
|
|
622
|
+
* ci: fix install step with npm and NX
|
|
623
|
+
|
|
624
|
+
* test: remove tests for now
|
|
625
|
+
|
|
626
|
+
* chore(utils): release version 1.7.3-beta.0
|
|
627
|
+
|
|
628
|
+
* chore(utils): release version 1.7.3
|
|
629
|
+
|
|
630
|
+
* chore(node): release version 0.14.4-beta.0
|
|
631
|
+
|
|
632
|
+
* chore(node): release version 0.14.4
|
|
633
|
+
|
|
634
|
+
* chore(nextjs-mf): release version 6.4.1-beta.4
|
|
635
|
+
|
|
636
|
+
* fix: remove debugging runtime variable
|
|
637
|
+
|
|
638
|
+
* chore(nextjs-mf): release version 6.4.1-beta.5
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
# [1.0.0](https://github.com/module-federation/nextjs-mf/compare/storybook-addon-0.2.0...storybook-addon-1.0.0) (2023-08-14)
|
|
643
|
+
|
|
644
|
+
### Dependency Updates
|
|
645
|
+
|
|
646
|
+
* `utils` updated to version `2.0.7`
|
|
647
|
+
* `utils` updated to version `2.0.7`
|
|
648
|
+
|
|
649
|
+
### Bug Fixes
|
|
650
|
+
|
|
651
|
+
* ignore ts error ([86bb46b](https://github.com/module-federation/nextjs-mf/commit/86bb46b0a77617c28d5294c3cc5e266b9360eb65))
|
|
652
|
+
* **storybook-addon:** update src path also for stories from v7 ([#1206](https://github.com/module-federation/nextjs-mf/issues/1206)) ([8af9066](https://github.com/module-federation/nextjs-mf/commit/8af906648c3abf8d9a344fec9153b54a02ad3e53)), closes [#1195](https://github.com/module-federation/nextjs-mf/issues/1195)
|
|
653
|
+
* workaround to self ref module error in prod ([#1205](https://github.com/module-federation/nextjs-mf/issues/1205)) ([1d88beb](https://github.com/module-federation/nextjs-mf/commit/1d88beb0da629f036e132573fee9f05494b1f540))
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
### Features
|
|
657
|
+
|
|
658
|
+
* Next Federation 7 ([#726](https://github.com/module-federation/nextjs-mf/issues/726)) ([d50ca1e](https://github.com/module-federation/nextjs-mf/commit/d50ca1e4636c4e0a402190f6e9c3f69ed9ec8eac)), closes [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#835](https://github.com/module-federation/nextjs-mf/issues/835) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#871](https://github.com/module-federation/nextjs-mf/issues/871) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#872](https://github.com/module-federation/nextjs-mf/issues/872) [#875](https://github.com/module-federation/nextjs-mf/issues/875) [#884](https://github.com/module-federation/nextjs-mf/issues/884) [#887](https://github.com/module-federation/nextjs-mf/issues/887) [#893](https://github.com/module-federation/nextjs-mf/issues/893) [#885](https://github.com/module-federation/nextjs-mf/issues/885) [#899](https://github.com/module-federation/nextjs-mf/issues/899) [#904](https://github.com/module-federation/nextjs-mf/issues/904) [#932](https://github.com/module-federation/nextjs-mf/issues/932) [#936](https://github.com/module-federation/nextjs-mf/issues/936) [#959](https://github.com/module-federation/nextjs-mf/issues/959) [#960](https://github.com/module-federation/nextjs-mf/issues/960) [#969](https://github.com/module-federation/nextjs-mf/issues/969) [#971](https://github.com/module-federation/nextjs-mf/issues/971) [#974](https://github.com/module-federation/nextjs-mf/issues/974) [#984](https://github.com/module-federation/nextjs-mf/issues/984) [#986](https://github.com/module-federation/nextjs-mf/issues/986) [#1015](https://github.com/module-federation/nextjs-mf/issues/1015) [#1086](https://github.com/module-federation/nextjs-mf/issues/1086) [#1084](https://github.com/module-federation/nextjs-mf/issues/1084)
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
### BREAKING CHANGES
|
|
662
|
+
|
|
663
|
+
* automaticAsyncBoundary option has been removed
|
|
664
|
+
|
|
665
|
+
* fix: exclude specific pages from page map automatically
|
|
666
|
+
|
|
667
|
+
* refactor: conslidate codebase
|
|
668
|
+
|
|
669
|
+
* fix: improve hot reload share recovery
|
|
670
|
+
|
|
671
|
+
* refactor: remove server jsonp template
|
|
672
|
+
|
|
673
|
+
* chore: remove dead code from runtime modules
|
|
674
|
+
|
|
675
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
676
|
+
|
|
677
|
+
getting chunk loading global from compiler output options
|
|
678
|
+
|
|
679
|
+
* feat: adding cleanInitArrays runtime helper
|
|
680
|
+
|
|
681
|
+
* chore: remove share scope hoist and module hoisting system
|
|
682
|
+
|
|
683
|
+
* chore: cleanup code
|
|
684
|
+
|
|
685
|
+
* chore: remove dead code from add module runtime plugin
|
|
686
|
+
|
|
687
|
+
likely can remove whole plugin in future
|
|
688
|
+
|
|
689
|
+
* chore: remove logs from delegate modules
|
|
690
|
+
|
|
691
|
+
* chore: remove old utils
|
|
692
|
+
|
|
693
|
+
* fix: add warning on auto page stitch
|
|
694
|
+
|
|
695
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
696
|
+
|
|
697
|
+
* chore: improve logging to see if its local load or remote load
|
|
698
|
+
|
|
699
|
+
* chore: clean up old custom promises factories
|
|
700
|
+
|
|
701
|
+
* fix: remove container proxy code
|
|
702
|
+
|
|
703
|
+
* fix: remove container proxy code
|
|
704
|
+
* automaticAsyncBoundary option has been removed
|
|
705
|
+
|
|
706
|
+
* fix: exclude specific pages from page map automatically
|
|
707
|
+
|
|
708
|
+
* refactor: conslidate codebase
|
|
709
|
+
|
|
710
|
+
* fix: improve hot reload share recovery
|
|
711
|
+
|
|
712
|
+
* refactor: remove server jsonp template
|
|
713
|
+
|
|
714
|
+
* chore: remove dead code from runtime modules
|
|
715
|
+
|
|
716
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
717
|
+
|
|
718
|
+
getting chunk loading global from compiler output options
|
|
719
|
+
|
|
720
|
+
* feat: adding cleanInitArrays runtime helper
|
|
721
|
+
|
|
722
|
+
* chore: remove share scope hoist and module hoisting system
|
|
723
|
+
|
|
724
|
+
* chore: cleanup code
|
|
725
|
+
|
|
726
|
+
* chore: remove dead code from add module runtime plugin
|
|
727
|
+
|
|
728
|
+
likely can remove whole plugin in future
|
|
729
|
+
|
|
730
|
+
* chore: remove logs from delegate modules
|
|
731
|
+
|
|
732
|
+
* chore: remove old utils
|
|
733
|
+
|
|
734
|
+
* fix: add warning on auto page stitch
|
|
735
|
+
|
|
736
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
737
|
+
|
|
738
|
+
* chore: improve logging to see if its local load or remote load
|
|
739
|
+
|
|
740
|
+
* chore: clean up old custom promises factories
|
|
741
|
+
|
|
742
|
+
* fix: remove container proxy code
|
|
743
|
+
|
|
744
|
+
* fix: remove container proxy code
|
|
745
|
+
|
|
746
|
+
* chore: fix project.json
|
|
747
|
+
|
|
748
|
+
* debugging
|
|
749
|
+
|
|
750
|
+
* fix: resolve backmerge issues with build
|
|
751
|
+
|
|
752
|
+
* Merge branch 'kill_child_compilers' into fix_backmerge_issues
|
|
753
|
+
|
|
754
|
+
# Conflicts:
|
|
755
|
+
# package-lock.json
|
|
756
|
+
# package.json
|
|
757
|
+
# packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
|
|
758
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
|
|
759
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
|
|
760
|
+
|
|
761
|
+
* feat: enable eager sharing
|
|
762
|
+
|
|
763
|
+
* refactor: improve module hooks for eager loading and search
|
|
764
|
+
|
|
765
|
+
* refactor: cleanup custom jsonp and make es5
|
|
766
|
+
|
|
767
|
+
* refactor: cleanup inverted container code
|
|
768
|
+
|
|
769
|
+
* refactor: cleanup inverted container code
|
|
770
|
+
* automaticAsyncBoundary option has been removed
|
|
771
|
+
|
|
772
|
+
* fix: exclude specific pages from page map automatically
|
|
773
|
+
|
|
774
|
+
* refactor: conslidate codebase
|
|
775
|
+
|
|
776
|
+
* fix: improve hot reload share recovery
|
|
777
|
+
|
|
778
|
+
* refactor: remove server jsonp template
|
|
779
|
+
|
|
780
|
+
* chore: remove dead code from runtime modules
|
|
781
|
+
|
|
782
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
783
|
+
|
|
784
|
+
getting chunk loading global from compiler output options
|
|
785
|
+
|
|
786
|
+
* feat: adding cleanInitArrays runtime helper
|
|
787
|
+
|
|
788
|
+
* chore: remove share scope hoist and module hoisting system
|
|
789
|
+
|
|
790
|
+
* chore: cleanup code
|
|
791
|
+
|
|
792
|
+
* chore: remove dead code from add module runtime plugin
|
|
793
|
+
|
|
794
|
+
likely can remove whole plugin in future
|
|
795
|
+
|
|
796
|
+
* chore: remove logs from delegate modules
|
|
797
|
+
|
|
798
|
+
* chore: remove old utils
|
|
799
|
+
|
|
800
|
+
* fix: add warning on auto page stitch
|
|
801
|
+
|
|
802
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
803
|
+
|
|
804
|
+
* chore: improve logging to see if its local load or remote load
|
|
805
|
+
|
|
806
|
+
* chore: clean up old custom promises factories
|
|
807
|
+
|
|
808
|
+
* fix: remove container proxy code
|
|
809
|
+
|
|
810
|
+
* fix: remove container proxy code
|
|
811
|
+
|
|
812
|
+
* fix: resolve backmerge issues with build
|
|
813
|
+
|
|
814
|
+
* Merge branch 'kill_child_compilers' into fix_backmerge_issues
|
|
815
|
+
|
|
816
|
+
# Conflicts:
|
|
817
|
+
# package-lock.json
|
|
818
|
+
# package.json
|
|
819
|
+
# packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
|
|
820
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
|
|
821
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
|
|
822
|
+
|
|
823
|
+
* feat: enable eager sharing
|
|
824
|
+
|
|
825
|
+
* refactor: improve module hooks for eager loading and search
|
|
826
|
+
|
|
827
|
+
* refactor: cleanup custom jsonp and make es5
|
|
828
|
+
|
|
829
|
+
* refactor: cleanup inverted container code
|
|
830
|
+
|
|
831
|
+
* refactor: cleanup inverted container code
|
|
832
|
+
|
|
833
|
+
* ci: fix install step with npm and NX
|
|
834
|
+
|
|
835
|
+
* test: remove tests for now
|
|
836
|
+
|
|
837
|
+
* chore(utils): release version 1.7.3-beta.0
|
|
838
|
+
|
|
839
|
+
* chore(utils): release version 1.7.3
|
|
840
|
+
|
|
841
|
+
* chore(node): release version 0.14.4-beta.0
|
|
842
|
+
|
|
843
|
+
* chore(node): release version 0.14.4
|
|
844
|
+
|
|
845
|
+
* chore(nextjs-mf): release version 6.4.1-beta.4
|
|
846
|
+
|
|
847
|
+
* fix: remove debugging runtime variable
|
|
848
|
+
|
|
849
|
+
* chore(nextjs-mf): release version 6.4.1-beta.5
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
# [1.0.0](https://github.com/module-federation/nextjs-mf/compare/storybook-addon-0.2.0...storybook-addon-1.0.0) (2023-08-14)
|
|
854
|
+
|
|
855
|
+
### Dependency Updates
|
|
856
|
+
|
|
857
|
+
* `utils` updated to version `2.0.6`
|
|
858
|
+
* `utils` updated to version `2.0.6`
|
|
859
|
+
|
|
860
|
+
### Bug Fixes
|
|
861
|
+
|
|
862
|
+
* ignore ts error ([86bb46b](https://github.com/module-federation/nextjs-mf/commit/86bb46b0a77617c28d5294c3cc5e266b9360eb65))
|
|
863
|
+
* **storybook-addon:** update src path also for stories from v7 ([#1206](https://github.com/module-federation/nextjs-mf/issues/1206)) ([8af9066](https://github.com/module-federation/nextjs-mf/commit/8af906648c3abf8d9a344fec9153b54a02ad3e53)), closes [#1195](https://github.com/module-federation/nextjs-mf/issues/1195)
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
### Features
|
|
867
|
+
|
|
868
|
+
* Next Federation 7 ([#726](https://github.com/module-federation/nextjs-mf/issues/726)) ([d50ca1e](https://github.com/module-federation/nextjs-mf/commit/d50ca1e4636c4e0a402190f6e9c3f69ed9ec8eac)), closes [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#835](https://github.com/module-federation/nextjs-mf/issues/835) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#871](https://github.com/module-federation/nextjs-mf/issues/871) [#851](https://github.com/module-federation/nextjs-mf/issues/851) [#864](https://github.com/module-federation/nextjs-mf/issues/864) [#872](https://github.com/module-federation/nextjs-mf/issues/872) [#875](https://github.com/module-federation/nextjs-mf/issues/875) [#884](https://github.com/module-federation/nextjs-mf/issues/884) [#887](https://github.com/module-federation/nextjs-mf/issues/887) [#893](https://github.com/module-federation/nextjs-mf/issues/893) [#885](https://github.com/module-federation/nextjs-mf/issues/885) [#899](https://github.com/module-federation/nextjs-mf/issues/899) [#904](https://github.com/module-federation/nextjs-mf/issues/904) [#932](https://github.com/module-federation/nextjs-mf/issues/932) [#936](https://github.com/module-federation/nextjs-mf/issues/936) [#959](https://github.com/module-federation/nextjs-mf/issues/959) [#960](https://github.com/module-federation/nextjs-mf/issues/960) [#969](https://github.com/module-federation/nextjs-mf/issues/969) [#971](https://github.com/module-federation/nextjs-mf/issues/971) [#974](https://github.com/module-federation/nextjs-mf/issues/974) [#984](https://github.com/module-federation/nextjs-mf/issues/984) [#986](https://github.com/module-federation/nextjs-mf/issues/986) [#1015](https://github.com/module-federation/nextjs-mf/issues/1015) [#1086](https://github.com/module-federation/nextjs-mf/issues/1086) [#1084](https://github.com/module-federation/nextjs-mf/issues/1084)
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
### BREAKING CHANGES
|
|
872
|
+
|
|
873
|
+
* automaticAsyncBoundary option has been removed
|
|
874
|
+
|
|
875
|
+
* fix: exclude specific pages from page map automatically
|
|
876
|
+
|
|
877
|
+
* refactor: conslidate codebase
|
|
878
|
+
|
|
879
|
+
* fix: improve hot reload share recovery
|
|
880
|
+
|
|
881
|
+
* refactor: remove server jsonp template
|
|
882
|
+
|
|
883
|
+
* chore: remove dead code from runtime modules
|
|
884
|
+
|
|
885
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
886
|
+
|
|
887
|
+
getting chunk loading global from compiler output options
|
|
888
|
+
|
|
889
|
+
* feat: adding cleanInitArrays runtime helper
|
|
890
|
+
|
|
891
|
+
* chore: remove share scope hoist and module hoisting system
|
|
892
|
+
|
|
893
|
+
* chore: cleanup code
|
|
894
|
+
|
|
895
|
+
* chore: remove dead code from add module runtime plugin
|
|
896
|
+
|
|
897
|
+
likely can remove whole plugin in future
|
|
898
|
+
|
|
899
|
+
* chore: remove logs from delegate modules
|
|
900
|
+
|
|
901
|
+
* chore: remove old utils
|
|
902
|
+
|
|
903
|
+
* fix: add warning on auto page stitch
|
|
904
|
+
|
|
905
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
906
|
+
|
|
907
|
+
* chore: improve logging to see if its local load or remote load
|
|
908
|
+
|
|
909
|
+
* chore: clean up old custom promises factories
|
|
910
|
+
|
|
911
|
+
* fix: remove container proxy code
|
|
912
|
+
|
|
913
|
+
* fix: remove container proxy code
|
|
914
|
+
* automaticAsyncBoundary option has been removed
|
|
915
|
+
|
|
916
|
+
* fix: exclude specific pages from page map automatically
|
|
917
|
+
|
|
918
|
+
* refactor: conslidate codebase
|
|
919
|
+
|
|
920
|
+
* fix: improve hot reload share recovery
|
|
921
|
+
|
|
922
|
+
* refactor: remove server jsonp template
|
|
923
|
+
|
|
924
|
+
* chore: remove dead code from runtime modules
|
|
925
|
+
|
|
926
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
927
|
+
|
|
928
|
+
getting chunk loading global from compiler output options
|
|
929
|
+
|
|
930
|
+
* feat: adding cleanInitArrays runtime helper
|
|
931
|
+
|
|
932
|
+
* chore: remove share scope hoist and module hoisting system
|
|
933
|
+
|
|
934
|
+
* chore: cleanup code
|
|
935
|
+
|
|
936
|
+
* chore: remove dead code from add module runtime plugin
|
|
937
|
+
|
|
938
|
+
likely can remove whole plugin in future
|
|
939
|
+
|
|
940
|
+
* chore: remove logs from delegate modules
|
|
941
|
+
|
|
942
|
+
* chore: remove old utils
|
|
943
|
+
|
|
944
|
+
* fix: add warning on auto page stitch
|
|
945
|
+
|
|
946
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
947
|
+
|
|
948
|
+
* chore: improve logging to see if its local load or remote load
|
|
949
|
+
|
|
950
|
+
* chore: clean up old custom promises factories
|
|
951
|
+
|
|
952
|
+
* fix: remove container proxy code
|
|
953
|
+
|
|
954
|
+
* fix: remove container proxy code
|
|
955
|
+
|
|
956
|
+
* chore: fix project.json
|
|
957
|
+
|
|
958
|
+
* debugging
|
|
959
|
+
|
|
960
|
+
* fix: resolve backmerge issues with build
|
|
961
|
+
|
|
962
|
+
* Merge branch 'kill_child_compilers' into fix_backmerge_issues
|
|
963
|
+
|
|
964
|
+
# Conflicts:
|
|
965
|
+
# package-lock.json
|
|
966
|
+
# package.json
|
|
967
|
+
# packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
|
|
968
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
|
|
969
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
|
|
970
|
+
|
|
971
|
+
* feat: enable eager sharing
|
|
972
|
+
|
|
973
|
+
* refactor: improve module hooks for eager loading and search
|
|
974
|
+
|
|
975
|
+
* refactor: cleanup custom jsonp and make es5
|
|
976
|
+
|
|
977
|
+
* refactor: cleanup inverted container code
|
|
978
|
+
|
|
979
|
+
* refactor: cleanup inverted container code
|
|
980
|
+
* automaticAsyncBoundary option has been removed
|
|
981
|
+
|
|
982
|
+
* fix: exclude specific pages from page map automatically
|
|
983
|
+
|
|
984
|
+
* refactor: conslidate codebase
|
|
985
|
+
|
|
986
|
+
* fix: improve hot reload share recovery
|
|
987
|
+
|
|
988
|
+
* refactor: remove server jsonp template
|
|
989
|
+
|
|
990
|
+
* chore: remove dead code from runtime modules
|
|
991
|
+
|
|
992
|
+
* fix: clean up jsonp getCustomJsonpCode
|
|
993
|
+
|
|
994
|
+
getting chunk loading global from compiler output options
|
|
995
|
+
|
|
996
|
+
* feat: adding cleanInitArrays runtime helper
|
|
997
|
+
|
|
998
|
+
* chore: remove share scope hoist and module hoisting system
|
|
999
|
+
|
|
1000
|
+
* chore: cleanup code
|
|
1001
|
+
|
|
1002
|
+
* chore: remove dead code from add module runtime plugin
|
|
1003
|
+
|
|
1004
|
+
likely can remove whole plugin in future
|
|
1005
|
+
|
|
1006
|
+
* chore: remove logs from delegate modules
|
|
1007
|
+
|
|
1008
|
+
* chore: remove old utils
|
|
1009
|
+
|
|
1010
|
+
* fix: add warning on auto page stitch
|
|
1011
|
+
|
|
1012
|
+
* fix: remove commented out code from InvertedContainerPlugin.ts
|
|
1013
|
+
|
|
1014
|
+
* chore: improve logging to see if its local load or remote load
|
|
1015
|
+
|
|
1016
|
+
* chore: clean up old custom promises factories
|
|
1017
|
+
|
|
1018
|
+
* fix: remove container proxy code
|
|
1019
|
+
|
|
1020
|
+
* fix: remove container proxy code
|
|
1021
|
+
|
|
1022
|
+
* fix: resolve backmerge issues with build
|
|
1023
|
+
|
|
1024
|
+
* Merge branch 'kill_child_compilers' into fix_backmerge_issues
|
|
1025
|
+
|
|
1026
|
+
# Conflicts:
|
|
1027
|
+
# package-lock.json
|
|
1028
|
+
# package.json
|
|
1029
|
+
# packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts
|
|
1030
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerPlugin.ts
|
|
1031
|
+
# packages/nextjs-mf/src/plugins/container/InvertedContainerRuntimeModule.ts
|
|
1032
|
+
|
|
1033
|
+
* feat: enable eager sharing
|
|
1034
|
+
|
|
1035
|
+
* refactor: improve module hooks for eager loading and search
|
|
1036
|
+
|
|
1037
|
+
* refactor: cleanup custom jsonp and make es5
|
|
1038
|
+
|
|
1039
|
+
* refactor: cleanup inverted container code
|
|
1040
|
+
|
|
1041
|
+
* refactor: cleanup inverted container code
|
|
1042
|
+
|
|
1043
|
+
* ci: fix install step with npm and NX
|
|
1044
|
+
|
|
1045
|
+
* test: remove tests for now
|
|
1046
|
+
|
|
1047
|
+
* chore(utils): release version 1.7.3-beta.0
|
|
1048
|
+
|
|
1049
|
+
* chore(utils): release version 1.7.3
|
|
1050
|
+
|
|
1051
|
+
* chore(node): release version 0.14.4-beta.0
|
|
1052
|
+
|
|
1053
|
+
* chore(node): release version 0.14.4
|
|
1054
|
+
|
|
1055
|
+
* chore(nextjs-mf): release version 6.4.1-beta.4
|
|
1056
|
+
|
|
1057
|
+
* fix: remove debugging runtime variable
|
|
1058
|
+
|
|
1059
|
+
* chore(nextjs-mf): release version 6.4.1-beta.5
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
# [0.2.0](https://github.com/module-federation/nextjs-mf/compare/storybook-addon-0.1.0...storybook-addon-0.2.0) (2023-05-03)
|
|
1064
|
+
|
|
1065
|
+
### Dependency Updates
|
|
1066
|
+
|
|
1067
|
+
* `utils` updated to version `1.7.0`
|
|
1068
|
+
* `utils` updated to version `1.7.0`
|
|
1069
|
+
|
|
1070
|
+
### Features
|
|
1071
|
+
|
|
1072
|
+
* **storybook-addon:** upgrade nx and refactor util `withModuleFederation` ([#829](https://github.com/module-federation/nextjs-mf/issues/829)) ([5eeab46](https://github.com/module-federation/nextjs-mf/commit/5eeab46861fa1e444b772cdd15ba5472414e5dd8))
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
|
|
5
1076
|
# 0.1.0 (2023-04-27)
|
|
6
1077
|
|
|
7
1078
|
### Dependency Updates
|
package/README.md
CHANGED
|
@@ -48,8 +48,8 @@ module.exports = storybookConfig;
|
|
|
48
48
|
Replace NX utils `withModuleFederation` in `webpack.config.js` with our utils `withModuleFederation`.
|
|
49
49
|
Example:
|
|
50
50
|
```javascript
|
|
51
|
-
const { composePlugins, withNx } = require('@
|
|
52
|
-
const { withReact } = require('@
|
|
51
|
+
const { composePlugins, withNx } = require('@nx/webpack');
|
|
52
|
+
const { withReact } = require('@nx/react');
|
|
53
53
|
const { withModuleFederation } = require('@module-federation/storybook-addon');
|
|
54
54
|
|
|
55
55
|
const baseConfig = require('./module-federation.config');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/storybook-addon",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Storybook addon to consume remote module federated apps/components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/module-federation/universe/tree/main/packages/storybook-addon",
|
|
@@ -15,22 +15,23 @@
|
|
|
15
15
|
],
|
|
16
16
|
"author": "Fiodorov Andrei <hello@fyodorovandrei.com> (https://github.com/fyodorovandrei)",
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@module-federation/utilities": "1.
|
|
19
|
-
"@storybook/core-common": "
|
|
20
|
-
"@storybook/node-logger": "
|
|
21
|
-
"webpack": "
|
|
22
|
-
"webpack-virtual-modules": "
|
|
18
|
+
"@module-federation/utilities": "1.9.1",
|
|
19
|
+
"@storybook/core-common": "7.0.24",
|
|
20
|
+
"@storybook/node-logger": "7.0.24",
|
|
21
|
+
"webpack": "5.88.1",
|
|
22
|
+
"webpack-virtual-modules": "0.5.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@module-federation/utilities": "1.
|
|
26
|
-
"@storybook/core-common": "^6.5.16",
|
|
27
|
-
"@storybook/node-logger": "^6.5.16",
|
|
25
|
+
"@module-federation/utilities": "1.9.1",
|
|
26
|
+
"@storybook/core-common": "^6.5.16 || ^7.0.0",
|
|
27
|
+
"@storybook/node-logger": "^6.5.16 || ^7.0.0",
|
|
28
28
|
"webpack": "^5.75.0",
|
|
29
|
-
"webpack-virtual-modules": "^0.5.0"
|
|
29
|
+
"webpack-virtual-modules": "^0.5.0",
|
|
30
|
+
"webpack-sources": "3.2.3"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
|
-
"@
|
|
33
|
-
"next": "13.
|
|
33
|
+
"@nx/devkit": "16.2.2",
|
|
34
|
+
"next": "13.4.2",
|
|
34
35
|
"process": "0.11.10",
|
|
35
36
|
"react": "18.2.0",
|
|
36
37
|
"react-dom": "18.2.0"
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
tslib_1.__exportStar(require("./lib/storybook-addon"), exports);
|
|
17
|
+
__exportStar(require("./lib/storybook-addon"), exports);
|
|
5
18
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/storybook-addon/src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/storybook-addon/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Configuration } from 'webpack';
|
|
2
2
|
import { ModuleFederationPluginOptions } from '@module-federation/utilities';
|
|
3
|
-
import type { ModuleFederationConfig } from '@
|
|
3
|
+
import type { ModuleFederationConfig } from '@nx/devkit';
|
|
4
4
|
import withModuleFederation from '../utils/with-module-federation';
|
|
5
5
|
export type Preset = string | {
|
|
6
6
|
name: string;
|
|
@@ -1,16 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
exports.webpack = exports.withModuleFederation = void 0;
|
|
4
|
-
const
|
|
5
|
-
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
30
|
+
const fs_1 = __importDefault(require("fs"));
|
|
6
31
|
const path_1 = require("path");
|
|
7
|
-
const process =
|
|
8
|
-
const webpack_virtual_modules_1 =
|
|
32
|
+
const process = __importStar(require("process"));
|
|
33
|
+
const webpack_virtual_modules_1 = __importDefault(require("webpack-virtual-modules"));
|
|
9
34
|
const webpack_1 = require("webpack");
|
|
10
35
|
const node_logger_1 = require("@storybook/node-logger");
|
|
11
36
|
const core_common_1 = require("@storybook/core-common");
|
|
12
37
|
const utilities_1 = require("@module-federation/utilities");
|
|
13
|
-
const with_module_federation_1 =
|
|
38
|
+
const with_module_federation_1 = __importDefault(require("../utils/with-module-federation"));
|
|
14
39
|
exports.withModuleFederation = with_module_federation_1.default;
|
|
15
40
|
const { ModuleFederationPlugin } = webpack_1.container;
|
|
16
41
|
const webpack = async (webpackConfig, options) => {
|
|
@@ -37,7 +62,9 @@ const webpack = async (webpackConfig, options) => {
|
|
|
37
62
|
}
|
|
38
63
|
const entries = await presets.apply('entries');
|
|
39
64
|
const bootstrap = entries.map((entryFile) => `import '${(0, utilities_1.correctImportPath)(context, entryFile)}';`);
|
|
40
|
-
const index = plugins.findIndex(
|
|
65
|
+
const index = plugins.findIndex(
|
|
66
|
+
//@ts-ignore
|
|
67
|
+
(plugin) => plugin.constructor.name === 'VirtualModulesPlugin');
|
|
41
68
|
if (index !== -1) {
|
|
42
69
|
node_logger_1.logger.info(`=> [MF] Detected plugin VirtualModulesPlugin`);
|
|
43
70
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -55,8 +82,13 @@ const webpack = async (webpackConfig, options) => {
|
|
|
55
82
|
if (!filePathFromProjectRootDir.startsWith(nodeModulesPath)) {
|
|
56
83
|
finalPath = (0, path_1.join)(context, nodeModulesPath, '.cache', 'storybook', filePathFromProjectRootDir);
|
|
57
84
|
finalDir = (0, path_1.dirname)(finalPath);
|
|
58
|
-
// Fix storybook stories' path in virtual module
|
|
59
|
-
if (
|
|
85
|
+
// Fix storybook stories' path in virtual module
|
|
86
|
+
if (
|
|
87
|
+
// For storybook version before 7
|
|
88
|
+
filePathFromProjectRootDir === '/generated-stories-entry.cjs' ||
|
|
89
|
+
// For storybook version 7
|
|
90
|
+
filePathFromProjectRootDir === '/storybook-stories.js') {
|
|
91
|
+
const isStorybookVersion7 = filePathFromProjectRootDir === '/storybook-stories.js';
|
|
60
92
|
const nonNormalizedStories = await presets.apply('stories');
|
|
61
93
|
const stories = (0, core_common_1.normalizeStories)(nonNormalizedStories, {
|
|
62
94
|
configDir: options.configDir,
|
|
@@ -66,7 +98,15 @@ const webpack = async (webpackConfig, options) => {
|
|
|
66
98
|
stories.forEach((story) => {
|
|
67
99
|
// Go up 3 times because the file was moved in /node_modules/.cache/storybook
|
|
68
100
|
const newDirectory = (0, path_1.join)('..', '..', '..', story.directory);
|
|
69
|
-
|
|
101
|
+
// Adding trailing slash for story directory in storybook v7
|
|
102
|
+
const oldSrc = isStorybookVersion7
|
|
103
|
+
? `'${story.directory}/'`
|
|
104
|
+
: `'${story.directory}'`;
|
|
105
|
+
const newSrc = isStorybookVersion7
|
|
106
|
+
? `'${newDirectory}/'`
|
|
107
|
+
: `'${newDirectory}'`;
|
|
108
|
+
// Fix story directory
|
|
109
|
+
sourceCode = sourceCode.replace(oldSrc, newSrc);
|
|
70
110
|
});
|
|
71
111
|
}
|
|
72
112
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storybook-addon.js","sourceRoot":"","sources":["../../../../../packages/storybook-addon/src/lib/storybook-addon.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"storybook-addon.js","sourceRoot":"","sources":["../../../../../packages/storybook-addon/src/lib/storybook-addon.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Configuration } from 'webpack';
|
|
2
|
-
import type { ModuleFederationConfig } from '@
|
|
2
|
+
import type { ModuleFederationConfig } from '@nx/devkit';
|
|
3
3
|
declare const withModuleFederation: (options: ModuleFederationConfig) => Promise<(config: Configuration) => Configuration>;
|
|
4
4
|
export default withModuleFederation;
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_1 = require("@
|
|
4
|
-
const project_graph_1 = require("nx/src/project-graph/project-graph");
|
|
3
|
+
const utils_1 = require("@nx/react/src/module-federation/utils");
|
|
5
4
|
const webpack_1 = require("webpack");
|
|
6
5
|
const { ModuleFederationPlugin } = webpack_1.container;
|
|
7
|
-
function determineRemoteUrl(remote) {
|
|
8
|
-
const remoteConfiguration = (0, project_graph_1.readCachedProjectConfiguration)(remote);
|
|
9
|
-
const serveTarget = remoteConfiguration?.targets?.['serve'];
|
|
10
|
-
if (!serveTarget) {
|
|
11
|
-
throw new Error(`Cannot automatically determine URL of remote (${remote}). Looked for property "host" in the project's "serve" target.\n
|
|
12
|
-
You can also use the tuple syntax in your webpack config to configure your remotes. e.g. \`remotes: [['remote1', 'http://localhost:4201']]\``);
|
|
13
|
-
}
|
|
14
|
-
const host = serveTarget.options?.host ?? 'http://localhost';
|
|
15
|
-
const port = serveTarget.options?.port ?? 4201;
|
|
16
|
-
return `${host.endsWith('/') ? host.slice(0, -1) : host}:${port}/remoteEntry.js`;
|
|
17
|
-
}
|
|
18
6
|
const updateMappedRemotes = (remotes) => {
|
|
19
7
|
const newRemotes = {};
|
|
20
8
|
Object.keys(remotes).forEach((key) => {
|
|
@@ -23,7 +11,7 @@ const updateMappedRemotes = (remotes) => {
|
|
|
23
11
|
return newRemotes;
|
|
24
12
|
};
|
|
25
13
|
const withModuleFederation = async (options) => {
|
|
26
|
-
const { mappedRemotes, sharedDependencies } = await (0, utils_1.getModuleFederationConfig)(options
|
|
14
|
+
const { mappedRemotes, sharedDependencies } = await (0, utils_1.getModuleFederationConfig)(options);
|
|
27
15
|
return (config) => {
|
|
28
16
|
config.experiments = { outputModule: false };
|
|
29
17
|
config.optimization = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-module-federation.js","sourceRoot":"","sources":["../../../../../packages/storybook-addon/src/utils/with-module-federation.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"with-module-federation.js","sourceRoot":"","sources":["../../../../../packages/storybook-addon/src/utils/with-module-federation.ts"],"names":[],"mappings":";;AAAA,iEAAkF;AAClF,qCAAmD;AAGnD,MAAM,EAAE,sBAAsB,EAAE,GAAG,mBAAS,CAAC;AAE7C,MAAM,mBAAmB,GAAG,CAAC,OAA+B,EAAE,EAAE;IAC9D,MAAM,UAAU,GAA2B,EAAE,CAAC;IAE9C,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACnC,UAAU,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,KAAK,EAAE,OAA+B,EAAE,EAAE;IACrE,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAA,iCAAyB,EAC3E,OAAO,CACR,CAAC;IAEF,OAAO,CAAC,MAAqB,EAAE,EAAE;QAC/B,MAAM,CAAC,WAAW,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;QAE7C,MAAM,CAAC,YAAY,GAAG;YACpB,YAAY,EAAE,KAAK;SACpB,CAAC;QAEF,MAAM,CAAC,MAAM,GAAG;YACd,UAAU,EAAE,MAAM;SACnB,CAAC;QAEF,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;QACtC,MAAM,CAAC,OAAO,CAAC,IAAI,CACjB,IAAI,sBAAsB,CAAC;YACzB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,QAAQ,EAAE,gBAAgB;YAC1B,MAAM,EAAE,kBAAkB;YAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,OAAO,EAAE,mBAAmB,CAAC,aAAa,CAAC;SAC5C,CAAC,CACH,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|