@gravityforms/dependency-extraction-webpack-plugin 4.5.0-beta.1 → 4.6.2

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Gravity Forms Dependency Extraction Webpack Plugin
2
2
 
3
- This plugin enhances the WordPress [Dependency Extraction Webpack Plugin](https://github.com/WordPress/gutenberg/tree/trunk/packages/dependency-extraction-webpack-plugin) by adding automatic inclusion of Gravity Forms dependencies alongside WordPress dependencies. Use this if you are developing features or addons that extend Gravity Forms and want to use our externals instead of bundling our code yourselves. Also used by the Gravity Forms plugin itself.
3
+ This plugin enhances the WordPress [Dependency Extraction Webpack Plugin](https://github.com/WordPress/gutenberg/tree/trunk/packages/dependency-extraction-webpack-plugin) by adding automatic inclusion of Gravity Forms dependencies alongside WordPress dependencies. Use this if you are developing features or add-ons that extend Gravity Forms and want to use our externals instead of bundling our code yourselves. This is also used by the Gravity Forms plugin itself.
4
4
 
5
5
  ## Installation
6
6
 
@@ -42,6 +42,15 @@ module.exports = {
42
42
  - Type: array
43
43
  - Default: []
44
44
 
45
- This option specifies an array of potential Gravity Forms excluded packages. These packages will be included within the bundle (as shown in the example above) and not mapped to the external.
45
+ This option specifies an array of packages to ignore during externals mapping. These packages will be included within your bundle and not mapped to the external.
46
+
47
+ An important note on our `@gravityforms/components` package. If you pass `@gravityforms/components` here, it will exclude all the components, but you can also pass `@gravityforms/components/react/admin/modules/Dialog` to only exclude the Dialog component. This could be useful if you want to use a version of the package that has that component in a state that is ahead of what core has shipped with. All other components will map to our externals, but this one will be included in the bundle.
48
+
49
+ #### `rootNamespace`
50
+
51
+ - Type: string
52
+ - Default: 'gform'
53
+
54
+ If you are using our components by enqueuing the compiled files yourself instead of using the ones enqueued by Gravity Forms, you need to set this option to the same one you used in that package. Check the components readme for more details.
46
55
 
47
56
  For more configuration options, refer to the original [dependency extraction plugin](https://github.com/WordPress/gutenberg/blob/trunk/packages/dependency-extraction-webpack-plugin/README.md#options).
@@ -29,17 +29,17 @@ module.exports = [
29
29
  "externalPath": "components.admin.html.elements"
30
30
  },
31
31
  {
32
- "defaultExport": "Text",
32
+ "defaultExport": "Textarea",
33
33
  "namedExports": [
34
- "textTemplate"
34
+ "textareaTemplate"
35
35
  ],
36
36
  "importPath": "html/admin/elements/",
37
37
  "externalPath": "components.admin.html.elements"
38
38
  },
39
39
  {
40
- "defaultExport": "Textarea",
40
+ "defaultExport": "Text",
41
41
  "namedExports": [
42
- "textareaTemplate"
42
+ "textTemplate"
43
43
  ],
44
44
  "importPath": "html/admin/elements/",
45
45
  "externalPath": "components.admin.html.elements"
@@ -53,9 +53,9 @@ module.exports = [
53
53
  "externalPath": "components.admin.html.elements"
54
54
  },
55
55
  {
56
- "defaultExport": "Link",
56
+ "defaultExport": "StackedIcon",
57
57
  "namedExports": [
58
- "linkTemplate"
58
+ "stackedIconTemplate"
59
59
  ],
60
60
  "importPath": "html/admin/elements/",
61
61
  "externalPath": "components.admin.html.elements"
@@ -68,14 +68,6 @@ module.exports = [
68
68
  "importPath": "html/admin/elements/",
69
69
  "externalPath": "components.admin.html.elements"
70
70
  },
71
- {
72
- "defaultExport": "StackedIcon",
73
- "namedExports": [
74
- "stackedIconTemplate"
75
- ],
76
- "importPath": "html/admin/elements/",
77
- "externalPath": "components.admin.html.elements"
78
- },
79
71
  {
80
72
  "defaultExport": "Loader",
81
73
  "namedExports": [
@@ -85,9 +77,9 @@ module.exports = [
85
77
  "externalPath": "components.admin.html.elements"
86
78
  },
87
79
  {
88
- "defaultExport": "Input",
80
+ "defaultExport": "Link",
89
81
  "namedExports": [
90
- "inputTemplate"
82
+ "linkTemplate"
91
83
  ],
92
84
  "importPath": "html/admin/elements/",
93
85
  "externalPath": "components.admin.html.elements"
@@ -101,25 +93,25 @@ module.exports = [
101
93
  "externalPath": "components.admin.html.elements"
102
94
  },
103
95
  {
104
- "defaultExport": "HelpText",
96
+ "defaultExport": "Input",
105
97
  "namedExports": [
106
- "helpTextTemplate"
98
+ "inputTemplate"
107
99
  ],
108
100
  "importPath": "html/admin/elements/",
109
101
  "externalPath": "components.admin.html.elements"
110
102
  },
111
103
  {
112
- "defaultExport": "Heading",
104
+ "defaultExport": "HelpText",
113
105
  "namedExports": [
114
- "headingTemplate"
106
+ "helpTextTemplate"
115
107
  ],
116
108
  "importPath": "html/admin/elements/",
117
109
  "externalPath": "components.admin.html.elements"
118
110
  },
119
111
  {
120
- "defaultExport": "Button",
112
+ "defaultExport": "Heading",
121
113
  "namedExports": [
122
- "buttonTemplate"
114
+ "headingTemplate"
123
115
  ],
124
116
  "importPath": "html/admin/elements/",
125
117
  "externalPath": "components.admin.html.elements"
@@ -142,94 +134,12 @@ module.exports = [
142
134
  "externalPath": "components.admin.html.elements"
143
135
  },
144
136
  {
145
- "defaultExport": "Tooltip",
146
- "importPath": "react/admin/modules/",
147
- "externalPath": "components.admin.react.modules"
148
- },
149
- {
150
- "defaultExport": "Swatch",
151
- "importPath": "react/admin/modules/",
152
- "externalPath": "components.admin.react.modules"
153
- },
154
- {
155
- "defaultExport": "Steps",
156
- "importPath": "react/admin/modules/",
157
- "externalPath": "components.admin.react.modules"
158
- },
159
- {
160
- "defaultExport": "SnackBar",
161
- "importPath": "react/admin/modules/",
162
- "externalPath": "components.admin.react.modules"
163
- },
164
- {
165
- "defaultExport": "Pagination",
166
- "importPath": "react/admin/modules/",
167
- "externalPath": "components.admin.react.modules"
168
- },
169
- {
170
- "defaultExport": "RouterNavBar",
171
- "importPath": "react/admin/modules/",
172
- "externalPath": "components.admin.react.modules"
173
- },
174
- {
175
- "defaultExport": "NavBar",
176
- "importPath": "react/admin/modules/",
177
- "externalPath": "components.admin.react.modules"
178
- },
179
- {
180
- "defaultExport": "MetaBox",
181
- "importPath": "react/admin/modules/",
182
- "externalPath": "components.admin.react.modules"
183
- },
184
- {
185
- "defaultExport": "List",
186
- "importPath": "react/admin/modules/",
187
- "externalPath": "components.admin.react.modules"
188
- },
189
- {
190
- "defaultExport": "Gravatar",
191
- "importPath": "react/admin/modules/",
192
- "externalPath": "components.admin.react.modules"
193
- },
194
- {
195
- "defaultExport": "InputGroup",
196
- "importPath": "react/admin/modules/",
197
- "externalPath": "components.admin.react.modules"
198
- },
199
- {
200
- "defaultExport": "Flyout",
201
- "importPath": "react/admin/modules/",
202
- "externalPath": "components.admin.react.modules"
203
- },
204
- {
205
- "defaultExport": "Droplist",
206
- "importPath": "react/admin/modules/",
207
- "externalPath": "components.admin.react.modules"
208
- },
209
- {
210
- "defaultExport": "Dropdown",
211
- "importPath": "react/admin/modules/",
212
- "externalPath": "components.admin.react.modules"
213
- },
214
- {
215
- "defaultExport": "ColorPicker",
216
- "importPath": "react/admin/modules/",
217
- "externalPath": "components.admin.react.modules"
218
- },
219
- {
220
- "defaultExport": "DataGrid",
221
- "importPath": "react/admin/modules/",
222
- "externalPath": "components.admin.react.modules"
223
- },
224
- {
225
- "defaultExport": "Alert",
226
- "importPath": "react/admin/modules/",
227
- "externalPath": "components.admin.react.modules"
228
- },
229
- {
230
- "defaultExport": "Calendar",
231
- "importPath": "react/admin/modules/",
232
- "externalPath": "components.admin.react.modules"
137
+ "defaultExport": "Button",
138
+ "namedExports": [
139
+ "buttonTemplate"
140
+ ],
141
+ "importPath": "html/admin/elements/",
142
+ "externalPath": "components.admin.html.elements"
233
143
  },
234
144
  {
235
145
  "defaultExport": "Toggle",
@@ -256,11 +166,6 @@ module.exports = [
256
166
  "importPath": "react/admin/elements/",
257
167
  "externalPath": "components.admin.react.elements"
258
168
  },
259
- {
260
- "defaultExport": "Dialog",
261
- "importPath": "react/admin/modules/",
262
- "externalPath": "components.admin.react.modules"
263
- },
264
169
  {
265
170
  "defaultExport": "Select",
266
171
  "importPath": "react/admin/elements/",
@@ -272,12 +177,12 @@ module.exports = [
272
177
  "externalPath": "components.admin.react.elements"
273
178
  },
274
179
  {
275
- "defaultExport": "Pill",
180
+ "defaultExport": "Radio",
276
181
  "importPath": "react/admin/elements/",
277
182
  "externalPath": "components.admin.react.elements"
278
183
  },
279
184
  {
280
- "defaultExport": "Radio",
185
+ "defaultExport": "Pill",
281
186
  "importPath": "react/admin/elements/",
282
187
  "externalPath": "components.admin.react.elements"
283
188
  },
@@ -297,12 +202,12 @@ module.exports = [
297
202
  "externalPath": "components.admin.react.elements"
298
203
  },
299
204
  {
300
- "defaultExport": "Image",
205
+ "defaultExport": "Icon",
301
206
  "importPath": "react/admin/elements/",
302
207
  "externalPath": "components.admin.react.elements"
303
208
  },
304
209
  {
305
- "defaultExport": "Icon",
210
+ "defaultExport": "Heading",
306
211
  "importPath": "react/admin/elements/",
307
212
  "externalPath": "components.admin.react.elements"
308
213
  },
@@ -317,7 +222,7 @@ module.exports = [
317
222
  "externalPath": "components.admin.react.elements"
318
223
  },
319
224
  {
320
- "defaultExport": "Heading",
225
+ "defaultExport": "Image",
321
226
  "importPath": "react/admin/elements/",
322
227
  "externalPath": "components.admin.react.elements"
323
228
  },
@@ -332,82 +237,147 @@ module.exports = [
332
237
  "externalPath": "components.admin.react.elements"
333
238
  },
334
239
  {
335
- "defaultExport": "Checkbox",
240
+ "defaultExport": "Box",
336
241
  "importPath": "react/admin/elements/",
337
242
  "externalPath": "components.admin.react.elements"
338
243
  },
339
244
  {
340
- "defaultExport": "Button",
245
+ "defaultExport": "Checkbox",
341
246
  "importPath": "react/admin/elements/",
342
247
  "externalPath": "components.admin.react.elements"
343
248
  },
344
249
  {
345
- "defaultExport": "Box",
250
+ "defaultExport": "Tooltip",
251
+ "importPath": "react/admin/modules/",
252
+ "externalPath": "components.admin.react.modules"
253
+ },
254
+ {
255
+ "defaultExport": "Swatch",
256
+ "importPath": "react/admin/modules/",
257
+ "externalPath": "components.admin.react.modules"
258
+ },
259
+ {
260
+ "defaultExport": "SnackBar",
261
+ "importPath": "react/admin/modules/",
262
+ "externalPath": "components.admin.react.modules"
263
+ },
264
+ {
265
+ "defaultExport": "RouterNavBar",
266
+ "importPath": "react/admin/modules/",
267
+ "externalPath": "components.admin.react.modules"
268
+ },
269
+ {
270
+ "defaultExport": "Button",
346
271
  "importPath": "react/admin/elements/",
347
272
  "externalPath": "components.admin.react.elements"
348
273
  },
349
274
  {
350
- "defaultExport": "RingLoader",
351
- "importPath": "react/admin/modules/Loaders/",
275
+ "defaultExport": "Pagination",
276
+ "importPath": "react/admin/modules/",
352
277
  "externalPath": "components.admin.react.modules"
353
278
  },
354
279
  {
355
- "defaultExport": "VidyardVideo",
356
- "importPath": "react/admin/modules/Videos/",
280
+ "defaultExport": "Steps",
281
+ "importPath": "react/admin/modules/",
357
282
  "externalPath": "components.admin.react.modules"
358
283
  },
359
284
  {
360
- "defaultExport": "ModularSidebar",
361
- "importPath": "react/admin/modules/Layouts/",
285
+ "defaultExport": "NavBar",
286
+ "importPath": "react/admin/modules/",
362
287
  "externalPath": "components.admin.react.modules"
363
288
  },
364
289
  {
365
- "defaultExport": "RightSidebar",
366
- "importPath": "react/admin/modules/Layouts/",
290
+ "defaultExport": "MetaBox",
291
+ "importPath": "react/admin/modules/",
367
292
  "externalPath": "components.admin.react.modules"
368
293
  },
369
294
  {
370
- "defaultExport": "DotIndicator",
371
- "importPath": "react/admin/modules/Indicators/",
295
+ "defaultExport": "List",
296
+ "importPath": "react/admin/modules/",
372
297
  "externalPath": "components.admin.react.modules"
373
298
  },
374
299
  {
375
- "defaultExport": "IconIndicator",
376
- "importPath": "react/admin/modules/Indicators/",
300
+ "defaultExport": "InputGroup",
301
+ "importPath": "react/admin/modules/",
377
302
  "externalPath": "components.admin.react.modules"
378
303
  },
379
304
  {
380
- "defaultExport": "IntegrationCard",
381
- "importPath": "react/admin/modules/Cards/",
305
+ "defaultExport": "Gravatar",
306
+ "importPath": "react/admin/modules/",
382
307
  "externalPath": "components.admin.react.modules"
383
308
  },
384
309
  {
385
- "defaultExport": "FormTemplateCard",
386
- "importPath": "react/admin/modules/Cards/",
310
+ "defaultExport": "Flyout",
311
+ "importPath": "react/admin/modules/",
387
312
  "externalPath": "components.admin.react.modules"
388
313
  },
389
314
  {
390
- "defaultExport": "WordPressLogo",
315
+ "defaultExport": "Droplist",
316
+ "importPath": "react/admin/modules/",
317
+ "externalPath": "components.admin.react.modules"
318
+ },
319
+ {
320
+ "defaultExport": "Dialog",
321
+ "importPath": "react/admin/modules/",
322
+ "externalPath": "components.admin.react.modules"
323
+ },
324
+ {
325
+ "defaultExport": "Dropdown",
326
+ "importPath": "react/admin/modules/",
327
+ "externalPath": "components.admin.react.modules"
328
+ },
329
+ {
330
+ "defaultExport": "DataGrid",
331
+ "importPath": "react/admin/modules/",
332
+ "externalPath": "components.admin.react.modules"
333
+ },
334
+ {
335
+ "defaultExport": "ColorPicker",
336
+ "importPath": "react/admin/modules/",
337
+ "externalPath": "components.admin.react.modules"
338
+ },
339
+ {
340
+ "defaultExport": "Chart",
341
+ "importPath": "react/admin/modules/",
342
+ "externalPath": "components.admin.react.modules"
343
+ },
344
+ {
345
+ "defaultExport": "Alert",
346
+ "importPath": "react/admin/modules/",
347
+ "externalPath": "components.admin.react.modules"
348
+ },
349
+ {
350
+ "defaultExport": "Calendar",
351
+ "importPath": "react/admin/modules/",
352
+ "externalPath": "components.admin.react.modules"
353
+ },
354
+ {
355
+ "defaultExport": "BrandedLink",
356
+ "importPath": "react/admin/elements/Link/",
357
+ "externalPath": "components.admin.react.elements"
358
+ },
359
+ {
360
+ "defaultExport": "ZohoLogo",
391
361
  "importPath": "react/admin/elements/Svgs/",
392
362
  "externalPath": "components.admin.react.elements"
393
363
  },
394
364
  {
395
- "defaultExport": "WhatsAppLogo",
365
+ "defaultExport": "TwilioLogo",
396
366
  "importPath": "react/admin/elements/Svgs/",
397
367
  "externalPath": "components.admin.react.elements"
398
368
  },
399
369
  {
400
- "defaultExport": "ZohoLogo",
370
+ "defaultExport": "WPMailSMTPFullLogo",
401
371
  "importPath": "react/admin/elements/Svgs/",
402
372
  "externalPath": "components.admin.react.elements"
403
373
  },
404
374
  {
405
- "defaultExport": "TelegramLogo",
375
+ "defaultExport": "WhatsAppLogo",
406
376
  "importPath": "react/admin/elements/Svgs/",
407
377
  "externalPath": "components.admin.react.elements"
408
378
  },
409
379
  {
410
- "defaultExport": "TwilioLogo",
380
+ "defaultExport": "WordPressLogo",
411
381
  "importPath": "react/admin/elements/Svgs/",
412
382
  "externalPath": "components.admin.react.elements"
413
383
  },
@@ -417,7 +387,12 @@ module.exports = [
417
387
  "externalPath": "components.admin.react.elements"
418
388
  },
419
389
  {
420
- "defaultExport": "SendGridFullLogo",
390
+ "defaultExport": "TelegramLogo",
391
+ "importPath": "react/admin/elements/Svgs/",
392
+ "externalPath": "components.admin.react.elements"
393
+ },
394
+ {
395
+ "defaultExport": "SlackLogo",
421
396
  "importPath": "react/admin/elements/Svgs/",
422
397
  "externalPath": "components.admin.react.elements"
423
398
  },
@@ -432,17 +407,17 @@ module.exports = [
432
407
  "externalPath": "components.admin.react.elements"
433
408
  },
434
409
  {
435
- "defaultExport": "SlackLogo",
410
+ "defaultExport": "SendGridFullLogo",
436
411
  "importPath": "react/admin/elements/Svgs/",
437
412
  "externalPath": "components.admin.react.elements"
438
413
  },
439
414
  {
440
- "defaultExport": "SMTP2GOLogo",
415
+ "defaultExport": "PostmarkLogo",
441
416
  "importPath": "react/admin/elements/Svgs/",
442
417
  "externalPath": "components.admin.react.elements"
443
418
  },
444
419
  {
445
- "defaultExport": "PostmarkLogo",
420
+ "defaultExport": "SMTP2GOLogo",
446
421
  "importPath": "react/admin/elements/Svgs/",
447
422
  "externalPath": "components.admin.react.elements"
448
423
  },
@@ -457,12 +432,12 @@ module.exports = [
457
432
  "externalPath": "components.admin.react.elements"
458
433
  },
459
434
  {
460
- "defaultExport": "PHPFullLogo",
435
+ "defaultExport": "MicrosoftLogo",
461
436
  "importPath": "react/admin/elements/Svgs/",
462
437
  "externalPath": "components.admin.react.elements"
463
438
  },
464
439
  {
465
- "defaultExport": "MicrosoftFullLogo",
440
+ "defaultExport": "PHPFullLogo",
466
441
  "importPath": "react/admin/elements/Svgs/",
467
442
  "externalPath": "components.admin.react.elements"
468
443
  },
@@ -472,17 +447,17 @@ module.exports = [
472
447
  "externalPath": "components.admin.react.elements"
473
448
  },
474
449
  {
475
- "defaultExport": "MandrillLogo",
450
+ "defaultExport": "MicrosoftFullLogo",
476
451
  "importPath": "react/admin/elements/Svgs/",
477
452
  "externalPath": "components.admin.react.elements"
478
453
  },
479
454
  {
480
- "defaultExport": "MicrosoftLogo",
455
+ "defaultExport": "MailgunLogo",
481
456
  "importPath": "react/admin/elements/Svgs/",
482
457
  "externalPath": "components.admin.react.elements"
483
458
  },
484
459
  {
485
- "defaultExport": "MailgunLogo",
460
+ "defaultExport": "MandrillLogo",
486
461
  "importPath": "react/admin/elements/Svgs/",
487
462
  "externalPath": "components.admin.react.elements"
488
463
  },
@@ -506,13 +481,18 @@ module.exports = [
506
481
  "importPath": "react/admin/elements/Svgs/",
507
482
  "externalPath": "components.admin.react.elements"
508
483
  },
484
+ {
485
+ "defaultExport": "GravitySMTPTextLogo",
486
+ "importPath": "react/admin/elements/Svgs/",
487
+ "externalPath": "components.admin.react.elements"
488
+ },
509
489
  {
510
490
  "defaultExport": "MailFailed",
511
491
  "importPath": "react/admin/elements/Svgs/",
512
492
  "externalPath": "components.admin.react.elements"
513
493
  },
514
494
  {
515
- "defaultExport": "GravitySMTPTextLogo",
495
+ "defaultExport": "GravitySMTPFullLogo",
516
496
  "importPath": "react/admin/elements/Svgs/",
517
497
  "externalPath": "components.admin.react.elements"
518
498
  },
@@ -522,22 +502,22 @@ module.exports = [
522
502
  "externalPath": "components.admin.react.elements"
523
503
  },
524
504
  {
525
- "defaultExport": "GravitySMTPFullLogo",
505
+ "defaultExport": "GoogleLogo",
526
506
  "importPath": "react/admin/elements/Svgs/",
527
507
  "externalPath": "components.admin.react.elements"
528
508
  },
529
509
  {
530
- "defaultExport": "GoogleFullLogo",
510
+ "defaultExport": "GravityFormsStackedLogo",
531
511
  "importPath": "react/admin/elements/Svgs/",
532
512
  "externalPath": "components.admin.react.elements"
533
513
  },
534
514
  {
535
- "defaultExport": "GoogleLogo",
515
+ "defaultExport": "GoogleAltLogo",
536
516
  "importPath": "react/admin/elements/Svgs/",
537
517
  "externalPath": "components.admin.react.elements"
538
518
  },
539
519
  {
540
- "defaultExport": "GoogleAltLogo",
520
+ "defaultExport": "GoogleFullLogo",
541
521
  "importPath": "react/admin/elements/Svgs/",
542
522
  "externalPath": "components.admin.react.elements"
543
523
  },
@@ -562,23 +542,63 @@ module.exports = [
562
542
  "externalPath": "components.admin.react.elements"
563
543
  },
564
544
  {
565
- "defaultExport": "BrevoLogo",
545
+ "defaultExport": "AmazonAWSFullLogo",
566
546
  "importPath": "react/admin/elements/Svgs/",
567
547
  "externalPath": "components.admin.react.elements"
568
548
  },
569
549
  {
570
- "defaultExport": "GravityFormsStackedLogo",
550
+ "defaultExport": "BrevoLogo",
571
551
  "importPath": "react/admin/elements/Svgs/",
572
552
  "externalPath": "components.admin.react.elements"
573
553
  },
574
554
  {
575
- "defaultExport": "BrandedLink",
576
- "importPath": "react/admin/elements/Link/",
577
- "externalPath": "components.admin.react.elements"
555
+ "defaultExport": "VidyardVideo",
556
+ "importPath": "react/admin/modules/Videos/",
557
+ "externalPath": "components.admin.react.modules"
578
558
  },
579
559
  {
580
560
  "defaultExport": "BrandedButton",
581
561
  "importPath": "react/admin/elements/Button/",
582
562
  "externalPath": "components.admin.react.elements"
563
+ },
564
+ {
565
+ "defaultExport": "RightSidebar",
566
+ "importPath": "react/admin/modules/Layouts/",
567
+ "externalPath": "components.admin.react.modules"
568
+ },
569
+ {
570
+ "defaultExport": "ModularSidebar",
571
+ "importPath": "react/admin/modules/Layouts/",
572
+ "externalPath": "components.admin.react.modules"
573
+ },
574
+ {
575
+ "defaultExport": "IconIndicator",
576
+ "importPath": "react/admin/modules/Indicators/",
577
+ "externalPath": "components.admin.react.modules"
578
+ },
579
+ {
580
+ "defaultExport": "DotIndicator",
581
+ "importPath": "react/admin/modules/Indicators/",
582
+ "externalPath": "components.admin.react.modules"
583
+ },
584
+ {
585
+ "defaultExport": "RingLoader",
586
+ "importPath": "react/admin/modules/Loaders/",
587
+ "externalPath": "components.admin.react.modules"
588
+ },
589
+ {
590
+ "defaultExport": "MetricCard",
591
+ "importPath": "react/admin/modules/Cards/",
592
+ "externalPath": "components.admin.react.modules"
593
+ },
594
+ {
595
+ "defaultExport": "IntegrationCard",
596
+ "importPath": "react/admin/modules/Cards/",
597
+ "externalPath": "components.admin.react.modules"
598
+ },
599
+ {
600
+ "defaultExport": "FormTemplateCard",
601
+ "importPath": "react/admin/modules/Cards/",
602
+ "externalPath": "components.admin.react.modules"
583
603
  }
584
604
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravityforms/dependency-extraction-webpack-plugin",
3
- "version": "4.5.0-beta.1",
3
+ "version": "4.6.2",
4
4
  "description": "Dependency extraction webpack plugin for use in Gravity Forms development. Extends the WordPress plugin.",
5
5
  "author": "Rocketgenius",
6
6
  "license": "GPL-2.0-or-later",
package/src/index.js CHANGED
@@ -28,6 +28,14 @@ class DependencyExtractionWebpackPlugin extends WPDependencyExtractionWebpackPlu
28
28
  const rootNameSpace = this.options.rootNamespace || ROOT_NAMESPACE;
29
29
  let externalRequest;
30
30
 
31
+ // Determine if @gravityforms/components is bundled
32
+ const isGravityComponentsBundled = ( this.options.bundledPackages || [] ).includes( '@gravityforms/components' );
33
+
34
+ // If @gravityforms/components is bundled, exclude all requests that start with @gravityforms/components
35
+ if ( isGravityComponentsBundled && request.startsWith( '@gravityforms/components' ) ) {
36
+ return callback();
37
+ }
38
+
31
39
  // Handle via options.requestToExternal first
32
40
  if ( typeof this.options.requestToExternal === 'function' ) {
33
41
  externalRequest = this.options.requestToExternal( request );
@@ -47,7 +55,6 @@ class DependencyExtractionWebpackPlugin extends WPDependencyExtractionWebpackPlu
47
55
 
48
56
  if ( externalRequest ) {
49
57
  this.externalizedDeps.add( request );
50
-
51
58
  return callback( null, externalRequest );
52
59
  }
53
60