From 8bf0f55a8e8a12d7d606a1de67addb2e4142969a Mon Sep 17 00:00:00 2001 From: Guillermo Enrique Bernal Moreira Date: Mon, 24 Jun 2024 08:00:19 -0500 Subject: [PATCH 1/2] Remove includes config from gloabals #98 --- src/exports/plugins/wp-scripts.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/exports/plugins/wp-scripts.js b/src/exports/plugins/wp-scripts.js index 21b6ad0..864edf3 100644 --- a/src/exports/plugins/wp-scripts.js +++ b/src/exports/plugins/wp-scripts.js @@ -57,8 +57,6 @@ export async function wp_scripts( options = {} ) { externals( { externals: scripts, } ), - globals( scripts, { - include: [ '**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx' ], - } ), + globals(scripts), ]; } From 78acdc7b152003bf84ac0337af0df080096e2994 Mon Sep 17 00:00:00 2001 From: Guillermo Enrique Bernal Moreira Date: Wed, 26 Jun 2024 09:19:28 -0500 Subject: [PATCH 2/2] Update src/exports/plugins/wp-scripts.js Co-authored-by: Dzikri Aziz --- src/exports/plugins/wp-scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exports/plugins/wp-scripts.js b/src/exports/plugins/wp-scripts.js index 864edf3..b104d01 100644 --- a/src/exports/plugins/wp-scripts.js +++ b/src/exports/plugins/wp-scripts.js @@ -57,6 +57,6 @@ export async function wp_scripts( options = {} ) { externals( { externals: scripts, } ), - globals(scripts), + globals( scripts ), ]; }