← All changes
|
includes/core/widgets/diviModulesV5/class-manager.php
+7
-1
3.13.1
→
3.13.3
View file →
| @@ -73,12 +73,18 @@ | ||
| 73 | 73 | } |
| 74 | 74 | return; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + // Must list every Divi package the bundle externalises — see the | |
| 78 | + // `externals` map in visual-builder/webpack.config.js. An external | |
| 79 | + // left out here only works while Divi happens to print that package | |
| 80 | + // first, and silently throws the moment a Divi update reorders them. | |
| 81 | + // Deliberately excludes divi-module-library: we must print *before* | |
| 82 | + // it so we still catch the registerModuleLibraryStore.after action. | |
| 77 | 83 | wp_enqueue_script( |
| 78 | 84 | 'wpfnl-divi5-vb', |
| 79 | 85 | $build_url . 'wpfnl-divi5-vb.js', |
| 80 | - [ 'divi-vendor-react', 'divi-vendor-wp-hooks', 'divi-module', 'divi-rest' ], | |
| 86 | + [ 'divi-vendor-react', 'divi-vendor-wp-hooks', 'divi-module', 'divi-rest', 'divi-icon-library' ], | |
| 81 | 87 | \WPFNL_VERSION . '.' . (string) filemtime( $js_file ), |
| 82 | 88 | true |
| 83 | 89 | ); |
| 84 | 90 | |