80
entry: 'react',
81
global: 'React',
82
minifyWithProdErrorCodes: false,
83
+ wrapWithModuleBoundaries: true,
84
externals: ['ReactNativeInternalFeatureFlags'],
85
},
86
91
entry: 'react/unstable-shared-subset',
92
global: 'React',
93
minifyWithProdErrorCodes: true,
94
+ wrapWithModuleBoundaries: false,
95
externals: [],
96
},
97
110
entry: 'react/jsx-runtime',
111
global: 'JSXRuntime',
112
minifyWithProdErrorCodes: true,
113
+ wrapWithModuleBoundaries: false,
114
externals: ['react', 'ReactNativeInternalFeatureFlags'],
115
},
116
131
entry: 'react/jsx-dev-runtime',
132
global: 'JSXDEVRuntime',
133
minifyWithProdErrorCodes: false,
134
+ wrapWithModuleBoundaries: false,
135
externals: ['react', 'ReactNativeInternalFeatureFlags'],
136
},
137
142
entry: 'react-fetch/index.browser',
143
global: 'ReactFetch',
144
minifyWithProdErrorCodes: true,
145
+ wrapWithModuleBoundaries: false,
146
externals: ['react'],
147
},
148
153
entry: 'react-fetch/index.node',
154
global: 'ReactFetch',
155
minifyWithProdErrorCodes: false,
156
+ wrapWithModuleBoundaries: false,
157
externals: ['react', 'http', 'https'],
158
},
159
164
entry: 'react-fs/index.browser.server',
165
global: 'ReactFilesystem',
166
minifyWithProdErrorCodes: true,
167
+ wrapWithModuleBoundaries: false,
168
externals: [],
169
},
170
175
entry: 'react-fs/index.node.server',
176
global: 'ReactFilesystem',
177
minifyWithProdErrorCodes: false,
178
+ wrapWithModuleBoundaries: false,
179
externals: ['react', 'fs/promises', 'path'],
180
},
181
186
entry: 'react-pg/index.browser.server',
187
global: 'ReactPostgres',
188
minifyWithProdErrorCodes: true,
189
+ wrapWithModuleBoundaries: false,
190
externals: [],
191
},
192
197
entry: 'react-pg/index.node.server',
198
global: 'ReactPostgres',
199
minifyWithProdErrorCodes: false,
200
+ wrapWithModuleBoundaries: false,
201
externals: ['react', 'pg'],
202
},
203
218
entry: 'react-dom',
219
global: 'ReactDOM',
220
minifyWithProdErrorCodes: true,
221
+ wrapWithModuleBoundaries: true,
222
externals: ['react'],
223
},
224
230
global: 'ReactDOMForked',
231
enableNewReconciler: true,
232
minifyWithProdErrorCodes: true,
233
+ wrapWithModuleBoundaries: true,
234
externals: ['react'],
235
},
236
241
entry: 'react-dom/test-utils',
242
global: 'ReactTestUtils',
243
minifyWithProdErrorCodes: false,
244
+ wrapWithModuleBoundaries: false,
245
externals: ['react', 'react-dom'],
246
},
247
253
entry: 'react-dom/testing',
254
global: 'ReactDOMTesting',
255
minifyWithProdErrorCodes: true,
256
+ wrapWithModuleBoundaries: false,
257
externals: ['react'],
258
},
259
267
name: 'react-dom-server-legacy.browser',
268
global: 'ReactDOMServer',
269
minifyWithProdErrorCodes: true,
270
+ wrapWithModuleBoundaries: false,
271
externals: ['react'],
272
babel: opts =>
273
Object.assign({}, opts, {
283
name: 'react-dom-server-legacy.node',
284
externals: ['react', 'stream'],
285
minifyWithProdErrorCodes: false,
286
+ wrapWithModuleBoundaries: false,
287
babel: opts =>
288
Object.assign({}, opts, {
289
plugins: opts.plugins.concat([
300
name: 'react-dom-server.browser',
301
global: 'ReactDOMServer',
302
minifyWithProdErrorCodes: true,
303
+ wrapWithModuleBoundaries: false,
304
externals: ['react'],
305
},
306
{
310
name: 'react-dom-server.node',
311
global: 'ReactDOMServer',
312
minifyWithProdErrorCodes: false,
313
+ wrapWithModuleBoundaries: false,
314
externals: ['react'],
315
},
316
{
319
entry: 'react-server-dom-relay/src/ReactDOMServerFB',
320
global: 'ReactDOMServer',
321
minifyWithProdErrorCodes: false,
322
+ wrapWithModuleBoundaries: false,
323
externals: ['react'],
324
},
325
330
entry: 'react-server-dom-webpack/writer.browser.server',
331
global: 'ReactServerDOMWriter',
332
minifyWithProdErrorCodes: false,
333
+ wrapWithModuleBoundaries: false,
334
externals: ['react'],
335
},
336
{
339
entry: 'react-server-dom-webpack/writer.node.server',
340
global: 'ReactServerDOMWriter',
341
minifyWithProdErrorCodes: false,
342
+ wrapWithModuleBoundaries: false,
343
externals: ['react'],
344
},
345
350
entry: 'react-server-dom-webpack',
351
global: 'ReactServerDOMReader',
352
minifyWithProdErrorCodes: true,
353
+ wrapWithModuleBoundaries: false,
354
externals: ['react'],
355
},
356
361
entry: 'react-server-dom-webpack/plugin',
362
global: 'ReactServerWebpackPlugin',
363
minifyWithProdErrorCodes: false,
364
+ wrapWithModuleBoundaries: false,
365
externals: ['fs', 'path', 'url', 'neo-async'],
366
},
367
372
entry: 'react-server-dom-webpack/node-loader',
373
global: 'ReactServerWebpackNodeLoader',
374
minifyWithProdErrorCodes: false,
375
+ wrapWithModuleBoundaries: false,
376
externals: ['acorn'],
377
},
378
383
entry: 'react-server-dom-webpack/node-register',
384
global: 'ReactFlightWebpackNodeRegister',
385
minifyWithProdErrorCodes: false,
386
+ wrapWithModuleBoundaries: false,
387
externals: ['url', 'module'],
388
},
389
394
entry: 'react-server-dom-relay/server',
395
global: 'ReactFlightDOMRelayServer', // TODO: Rename to Writer
396
minifyWithProdErrorCodes: false,
397
+ wrapWithModuleBoundaries: false,
398
externals: [
399
'react',
400
'ReactFlightDOMRelayServerIntegration',
409
entry: 'react-server-dom-relay',
410
global: 'ReactFlightDOMRelayClient', // TODO: Rename to Reader
411
minifyWithProdErrorCodes: true,
412
+ wrapWithModuleBoundaries: false,
413
externals: [
414
'react',
415
'ReactFlightDOMRelayClientIntegration',
424
entry: 'react-server-native-relay/server',
425
global: 'ReactFlightNativeRelayServer', // TODO: Rename to Writer
426
minifyWithProdErrorCodes: false,
427
+ wrapWithModuleBoundaries: false,
428
externals: [
429
'react',
430
'ReactFlightNativeRelayServerIntegration',
440
entry: 'react-server-native-relay',
441
global: 'ReactFlightNativeRelayClient', // TODO: Rename to Reader
442
minifyWithProdErrorCodes: true,
443
+ wrapWithModuleBoundaries: false,
444
externals: [
445
'react',
446
'ReactFlightNativeRelayClientIntegration',
456
entry: 'react-suspense-test-utils',
457
global: 'ReactSuspenseTestUtils',
458
minifyWithProdErrorCodes: false,
459
+ wrapWithModuleBoundaries: false,
460
externals: ['react'],
461
},
462
475
global: 'ReactART',
476
externals: ['react'],
477
minifyWithProdErrorCodes: true,
478
+ wrapWithModuleBoundaries: true,
479
babel: opts =>
480
Object.assign({}, opts, {
481
// Include JSX
499
global: 'ReactNativeRenderer',
500
externals: ['react-native', 'ReactNativeInternalFeatureFlags'],
501
minifyWithProdErrorCodes: false,
502
+ wrapWithModuleBoundaries: true,
503
babel: opts =>
504
Object.assign({}, opts, {
505
plugins: opts.plugins.concat([
514
global: 'ReactNativeRenderer',
515
externals: ['react-native'],
516
minifyWithProdErrorCodes: false,
517
+ wrapWithModuleBoundaries: true,
518
babel: opts =>
519
Object.assign({}, opts, {
520
plugins: opts.plugins.concat([
533
global: 'ReactFabric',
534
externals: ['react-native', 'ReactNativeInternalFeatureFlags'],
535
minifyWithProdErrorCodes: false,
536
+ wrapWithModuleBoundaries: true,
537
babel: opts =>
538
Object.assign({}, opts, {
539
plugins: opts.plugins.concat([
548
global: 'ReactFabric',
549
externals: ['react-native'],
550
minifyWithProdErrorCodes: false,
551
+ wrapWithModuleBoundaries: true,
552
babel: opts =>
553
Object.assign({}, opts, {
554
plugins: opts.plugins.concat([
579
'ReactNativeInternalFeatureFlags',
580
],
581
minifyWithProdErrorCodes: false,
582
+ wrapWithModuleBoundaries: false,
583
babel: opts =>
584
Object.assign({}, opts, {
585
plugins: opts.plugins.concat([
595
entry: 'react-noop-renderer',
596
global: 'ReactNoopRenderer',
597
minifyWithProdErrorCodes: true,
598
+ wrapWithModuleBoundaries: false,
599
externals: ['react', 'scheduler', 'scheduler/unstable_mock', 'expect'],
600
},
601
606
entry: 'react-noop-renderer/persistent',
607
global: 'ReactNoopRendererPersistent',
608
minifyWithProdErrorCodes: true,
609
+ wrapWithModuleBoundaries: false,
610
externals: ['react', 'scheduler', 'expect'],
611
},
612
617
entry: 'react-noop-renderer/server',
618
global: 'ReactNoopRendererServer',
619
minifyWithProdErrorCodes: true,
620
+ wrapWithModuleBoundaries: false,
621
externals: ['react', 'scheduler', 'expect'],
622
},
623
628
entry: 'react-noop-renderer/flight-server',
629
global: 'ReactNoopFlightServer',
630
minifyWithProdErrorCodes: false,
631
+ wrapWithModuleBoundaries: false,
632
externals: [
633
'react',
634
'scheduler',
644
entry: 'react-noop-renderer/flight-client',
645
global: 'ReactNoopFlightClient',
646
minifyWithProdErrorCodes: false,
647
+ wrapWithModuleBoundaries: false,
648
externals: [
649
'react',
650
'scheduler',
660
entry: 'react-reconciler',
661
global: 'ReactReconciler',
662
minifyWithProdErrorCodes: true,
663
+ wrapWithModuleBoundaries: false,
664
externals: ['react'],
665
},
666
671
entry: 'react-server',
672
global: 'ReactServer',
673
minifyWithProdErrorCodes: false,
674
+ wrapWithModuleBoundaries: false,
675
externals: ['react'],
676
},
677
682
entry: 'react-server/flight',
683
global: 'ReactFlightServer',
684
minifyWithProdErrorCodes: false,
685
+ wrapWithModuleBoundaries: false,
686
externals: ['react'],
687
},
688
693
entry: 'react-client/flight',
694
global: 'ReactFlightClient',
695
minifyWithProdErrorCodes: true,
696
+ wrapWithModuleBoundaries: false,
697
externals: ['react'],
698
},
699
704
entry: 'react-reconciler/reflection',
705
global: 'ReactFiberTreeReflection',
706
minifyWithProdErrorCodes: true,
707
+ wrapWithModuleBoundaries: false,
708
externals: [],
709
},
710
715
entry: 'react-reconciler/constants',
716
global: 'ReactReconcilerConstants',
717
minifyWithProdErrorCodes: true,
718
+ wrapWithModuleBoundaries: false,
719
externals: [],
720
},
721
733
entry: 'react-is',
734
global: 'ReactIs',
735
minifyWithProdErrorCodes: true,
736
+ wrapWithModuleBoundaries: false,
737
externals: [],
738
},
739
744
entry: 'react-debug-tools',
745
global: 'ReactDebugTools',
746
minifyWithProdErrorCodes: false,
747
+ wrapWithModuleBoundaries: false,
748
externals: [],
749
},
750
757
entry: 'react-cache',
758
global: 'ReactCacheOld',
759
minifyWithProdErrorCodes: false,
760
+ wrapWithModuleBoundaries: false,
761
externals: ['react', 'scheduler'],
762
},
763
769
global: 'createSubscription',
770
externals: ['react'],
771
minifyWithProdErrorCodes: true,
772
+ wrapWithModuleBoundaries: true,
773
babel: opts =>
774
Object.assign({}, opts, {
775
plugins: opts.plugins.concat([
785
entry: 'use-subscription',
786
global: 'useSubscription',
787
minifyWithProdErrorCodes: true,
788
+ wrapWithModuleBoundaries: true,
789
externals: ['react'],
790
},
791
796
entry: 'use-sync-external-store',
797
global: 'useSyncExternalStore',
798
minifyWithProdErrorCodes: true,
799
+ wrapWithModuleBoundaries: true,
800
externals: ['react'],
801
},
802
807
entry: 'use-sync-external-store/extra',
808
global: 'useSyncExternalStoreExtra',
809
minifyWithProdErrorCodes: true,
810
+ wrapWithModuleBoundaries: true,
811
externals: ['react', 'use-sync-external-store'],
812
},
813
818
entry: 'use-sync-external-store/index.native',
819
global: 'useSyncExternalStoreNative',
820
minifyWithProdErrorCodes: true,
821
+ wrapWithModuleBoundaries: true,
822
externals: ['react', 'ReactNativeInternalFeatureFlags'],
823
},
824
838
entry: 'scheduler',
839
global: 'Scheduler',
840
minifyWithProdErrorCodes: true,
841
+ wrapWithModuleBoundaries: true,
842
externals: ['ReactNativeInternalFeatureFlags'],
843
},
844
858
entry: 'scheduler/unstable_mock',
859
global: 'SchedulerMock',
860
minifyWithProdErrorCodes: false,
861
+ wrapWithModuleBoundaries: false,
862
externals: ['ReactNativeInternalFeatureFlags'],
863
},
864
875
entry: 'scheduler/unstable_post_task',
876
global: 'SchedulerPostTask',
877
minifyWithProdErrorCodes: true,
878
+ wrapWithModuleBoundaries: false,
879
externals: [],
880
},
881
886
entry: 'jest-react',
887
global: 'JestReact',
888
minifyWithProdErrorCodes: false,
889
+ wrapWithModuleBoundaries: false,
890
externals: ['react', 'scheduler', 'scheduler/unstable_mock'],
891
},
892
901
entry: 'eslint-plugin-react-hooks',
902
global: 'ESLintPluginReactHooks',
903
minifyWithProdErrorCodes: false,
904
+ wrapWithModuleBoundaries: false,
905
externals: [],
906
},
907
912
entry: 'react-refresh/babel',
913
global: 'ReactFreshBabelPlugin',
914
minifyWithProdErrorCodes: false,
915
+ wrapWithModuleBoundaries: false,
916
externals: [],
917
},
918
{
921
entry: 'react-refresh/runtime',
922
global: 'ReactFreshRuntime',
923
minifyWithProdErrorCodes: false,
924
+ wrapWithModuleBoundaries: false,
925
externals: [],
926
},
927
];