From 51eff5c234abd95882438daa76eb8a1b10813378 Mon Sep 17 00:00:00 2001 From: Thomas Shellberg <6723003+tommyshellberg@users.noreply.github.com> Date: Thu, 26 Oct 2023 12:25:11 +0200 Subject: [PATCH] Woo AI - fix empty build dir due to entrypoint file extension match failure. (#40997) * Woo AI - Fix empty build directory due to entry point file extension match failure. --- plugins/woo-ai/changelog/fix-webpack-build | 4 ++++ plugins/woo-ai/webpack.config.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 plugins/woo-ai/changelog/fix-webpack-build diff --git a/plugins/woo-ai/changelog/fix-webpack-build b/plugins/woo-ai/changelog/fix-webpack-build new file mode 100644 index 00000000000..31cc36fe7ae --- /dev/null +++ b/plugins/woo-ai/changelog/fix-webpack-build @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Fix Woo AI webpack build configuration. diff --git a/plugins/woo-ai/webpack.config.js b/plugins/woo-ai/webpack.config.js index 3bdf5e0eb8a..d131f0792b0 100644 --- a/plugins/woo-ai/webpack.config.js +++ b/plugins/woo-ai/webpack.config.js @@ -4,7 +4,7 @@ const WooCommerceDependencyExtractionWebpackPlugin = require( '@woocommerce/depe module.exports = { ...defaultConfig, entry: { - ...defaultConfig.entry, + index: './src/index.ts', }, module: { ...defaultConfig.module,