From d406eeb299e0123eba131caa72bca12ddb26b23b Mon Sep 17 00:00:00 2001 From: louwie17 Date: Mon, 12 Dec 2022 09:43:34 -0400 Subject: [PATCH] Fix react chunk build warnings (#35930) * Reorganize imports to fix build warnings and remove overlapping css import * Add changelog * Update changelog --- .../woocommerce-admin/client/products/add-product-page.tsx | 2 -- .../woocommerce-admin/client/products/edit-product-page.tsx | 3 +-- plugins/woocommerce/changelog/fix-chunk_build_warnings | 4 ++++ 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 plugins/woocommerce/changelog/fix-chunk_build_warnings diff --git a/plugins/woocommerce-admin/client/products/add-product-page.tsx b/plugins/woocommerce-admin/client/products/add-product-page.tsx index 37326b87fee..ac84914a862 100644 --- a/plugins/woocommerce-admin/client/products/add-product-page.tsx +++ b/plugins/woocommerce-admin/client/products/add-product-page.tsx @@ -7,8 +7,6 @@ import { useEffect } from '@wordpress/element'; /** * Internal dependencies */ - -import './product-page.scss'; import { ProductForm } from './product-form'; const AddProductPage: React.FC = () => { diff --git a/plugins/woocommerce-admin/client/products/edit-product-page.tsx b/plugins/woocommerce-admin/client/products/edit-product-page.tsx index 1b403e50713..9544f353adf 100644 --- a/plugins/woocommerce-admin/client/products/edit-product-page.tsx +++ b/plugins/woocommerce-admin/client/products/edit-product-page.tsx @@ -16,9 +16,8 @@ import { useParams } from 'react-router-dom'; /** * Internal dependencies */ -import { ProductFormLayout } from './layout/product-form-layout'; -import './product-page.scss'; import { ProductForm } from './product-form'; +import { ProductFormLayout } from './layout/product-form-layout'; const EditProductPage: React.FC = () => { const { productId } = useParams(); diff --git a/plugins/woocommerce/changelog/fix-chunk_build_warnings b/plugins/woocommerce/changelog/fix-chunk_build_warnings new file mode 100644 index 00000000000..8d19a6e74a8 --- /dev/null +++ b/plugins/woocommerce/changelog/fix-chunk_build_warnings @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Fix WooCommerce Admin client React build warnings and remove unnecessary scss imports.