Skip to content

Commit 18c7416

Browse files
committed
chore: remove redundant enqueueing of already imported js
1 parent 58acee3 commit 18c7416

File tree

4 files changed

+0
-41
lines changed

4 files changed

+0
-41
lines changed

.config/webpack.config.dev.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ module.exports = [
2626
},
2727
// Admin settings script.
2828
'admin_welcome': path.resolve( __dirname, '../src/welcome/admin.js' ),
29-
// V2 deprecated scripts, we build this here since that's how we did it before.
30-
'admin_welcome_v2': {
31-
import: path.resolve( __dirname, '../src/deprecated/v2/welcome/admin.js' ),
32-
filename: 'deprecated/[name].js'
33-
},
3429
'frontend_blocks_deprecated_v2': {
3530
import: path.resolve( __dirname, '../src/deprecated/v2/block-frontend.js' ),
3631
filename: 'deprecated/[name].js'

.config/webpack.config.prod.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ module.exports = [
2626
},
2727
// Admin settings script.
2828
'admin_welcome': path.resolve( __dirname, '../src/welcome/admin.js' ),
29-
// V2 deprecated script, we build this here since that's how we did it before.
30-
'admin_welcome_v2': {
31-
import: path.resolve( __dirname, '../src/deprecated/v2/welcome/admin.js' ),
32-
filename: 'deprecated/[name].js'
33-
},
3429
'frontend_blocks_deprecated_v2': {
3530
import: path.resolve( __dirname, '../src/deprecated/v2/block-frontend.js' ),
3631
filename: 'deprecated/[name].js'

plugin.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,5 @@ function is_frontend() {
290290
require_once( plugin_dir_path( __FILE__ ) . 'src/deprecated/v2/blocks.php' );
291291
require_once( plugin_dir_path( __FILE__ ) . 'src/deprecated/v2/disabled-blocks.php' );
292292
require_once( plugin_dir_path( __FILE__ ) . 'src/deprecated/v2/design-library/init.php' );
293-
require_once( plugin_dir_path( __FILE__ ) . 'src/deprecated/v2/admin.php' );
294293
require_once( plugin_dir_path( __FILE__ ) . 'src/deprecated/v2/optimization-settings.php' );
295294
require_once( plugin_dir_path( __FILE__ ) . 'src/deprecated/v2/global-settings.php' );

src/deprecated/v2/admin.php

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)