Commit d9a13065580 for woocommerce
commit d9a130655805c0443721c60800a217d02243a6eb
Author: Luigi Teschio <gigitux@gmail.com>
Date: Tue Sep 15 10:33:51 2026 +0200
Restore the Beta Tester main JavaScript bundle (#68697)
* Restore the Beta Tester main JavaScript bundle
* Add changelog entry for the Beta Tester asset fix
diff --git a/plugins/woocommerce-beta-tester/changelog/fix-missing-index-build b/plugins/woocommerce-beta-tester/changelog/fix-missing-index-build
new file mode 100644
index 00000000000..440d345e809
--- /dev/null
+++ b/plugins/woocommerce-beta-tester/changelog/fix-missing-index-build
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Restore the main Beta Tester JavaScript bundle and correct asset version fallback paths.
diff --git a/plugins/woocommerce-beta-tester/plugin.php b/plugins/woocommerce-beta-tester/plugin.php
index b1571979c68..db0bda6de7a 100644
--- a/plugins/woocommerce-beta-tester/plugin.php
+++ b/plugins/woocommerce-beta-tester/plugin.php
@@ -60,7 +60,7 @@ function enqueue_beta_tester_app_script() {
? require $script_asset_path
: array(
'dependencies' => array(),
- 'version' => filemtime( $script_path ),
+ 'version' => filemtime( __DIR__ . $script_path ),
);
$script_url = plugins_url( $script_path, __FILE__ );
diff --git a/plugins/woocommerce-beta-tester/webpack.config.js b/plugins/woocommerce-beta-tester/webpack.config.js
index 085e6240232..dbfa2c82337 100644
--- a/plugins/woocommerce-beta-tester/webpack.config.js
+++ b/plugins/woocommerce-beta-tester/webpack.config.js
@@ -5,7 +5,7 @@ const path = require( 'path' );
module.exports = {
...defaultConfig,
entry: {
- ...defaultConfig.entry,
+ index: './src/index.js',
// Separate entry point for the live-branches page.
app: './src/app/index.js',
'live-branches': './src/live-branches/index.tsx',
diff --git a/plugins/woocommerce-beta-tester/woocommerce-beta-tester.php b/plugins/woocommerce-beta-tester/woocommerce-beta-tester.php
index e1f66fefabe..53af244dbad 100644
--- a/plugins/woocommerce-beta-tester/woocommerce-beta-tester.php
+++ b/plugins/woocommerce-beta-tester/woocommerce-beta-tester.php
@@ -90,7 +90,7 @@ function add_extension_register_script() {
? require $script_asset_path
: array(
'dependencies' => array(),
- 'version' => filemtime( $script_path ),
+ 'version' => filemtime( __DIR__ . $script_path ),
);
$script_url = plugins_url( $script_path, __FILE__ );